This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0-or-later | |
pragma solidity >=0.8.0 <0.9.0; | |
/// @notice Bilateral escrow for ETH and ERC-20/721 tokens. | |
/// @author LexDAO LLC. | |
contract LexLocker { | |
uint256 lockerCount; | |
mapping(uint256 => Locker) public lockers; | |
mapping(address => Resolver) public resolvers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0-or-later | |
pragma solidity >=0.8.0 <0.9.0; | |
/// @notice Bilateral escrow for ETH and ERC-20/721 tokens. | |
/// @author LexDAO LLC. | |
contract LexLocker { | |
uint256 lockerCount; | |
mapping(uint256 => Locker) public lockers; | |
mapping(address => Resolver) public resolvers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0-or-later | |
pragma solidity 0.6.12; | |
/* | |
███ ███ ██████ ██████ ██ ██ ██ | |
████ ████ ██ ██ ██ ██ ██ ██ | |
██ ████ ██ ██ ██ ██ ███████ ██ | |
██ ██ ██ ██ ██ ██ ██ ██ ██ | |
██ ██ ██████ ██████ ██ ██ ██ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0-or-later | |
pragma solidity 0.8.7; | |
/* | |
d888888b d888888b | |
d888 8888b d888888 888b | |
d88 88 898888b d8888 888 88b | |
d8P 88888888b d88888888888 b8b | |
88 8888888888 88888888888 88 | |
88 88888888888 8888888888 88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
*Submitted for verification at Etherscan.io on 2021-09-05 | |
*/ | |
/** | |
*Submitted for verification at Etherscan.io on 2021-08-27 | |
*/ | |
// SPDX-License-Identifier: MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol"; | |
/** | |
* @title ERC721Mock | |
* This mock just provides a public safeMint, mint, and burn functions for testing purposes | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// SPDX-License-Identifier: GPL-3.0-or-later | |
pragma solidity ^0.8.0; | |
/// @notice Basic ERC20 implementation. | |
contract Token { | |
string public name; | |
string public symbol; | |
uint8 constant public decimals = 18; | |
uint public totalSupply; | |
mapping(address => uint) public balanceOf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { t } from '@lingui/macro' | |
import { CRXSUSHI, XSUSHI } from '../../../constants' | |
import { ChainId, SUSHI_ADDRESS } from '@sushiswap/sdk' | |
import { tryParseAmount } from '../../../functions' | |
import { useBentoBalance } from '../../bentobox/hooks' | |
import { useActiveWeb3React } from '../../../hooks' | |
import { useTokenBalances } from '../../wallet/hooks' | |
import { StrategyGeneralInfo, StrategyHook, StrategyTokenDefinitions } from '../types' | |
import useBaseInariStrategy from './useBaseInariStrategy' | |
import { useEffect, useMemo } from 'react' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { t } from '@lingui/macro' | |
import { AXSUSHI, XSUSHI } from '../../../constants' | |
import { ChainId, SUSHI_ADDRESS } from '@sushiswap/sdk' | |
import { tryParseAmount } from '../../../functions' | |
import { useBentoBalance } from '../../bentobox/hooks' | |
import { useActiveWeb3React } from '../../../hooks' | |
import { useTokenBalances } from '../../wallet/hooks' | |
import { StrategyGeneralInfo, StrategyHook, StrategyTokenDefinitions } from '../types' | |
import useBaseInariStrategy from './useBaseInariStrategy' | |
import { useEffect, useMemo } from 'react' |
NewerOlder