More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 32 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Remove Liquidity... | 20584590 | 35 hrs ago | IN | 0 ETH | 0.00029227 | ||||
Add Liquidity By... | 20570725 | 3 days ago | IN | 0 ETH | 0.00043079 | ||||
Add Liquidity By... | 20543425 | 7 days ago | IN | 0 ETH | 0.00017591 | ||||
Add Liquidity By... | 20433439 | 22 days ago | IN | 0 ETH | 0.00041237 | ||||
Add Liquidity By... | 20428892 | 23 days ago | IN | 0 ETH | 0.0009149 | ||||
Add Liquidity By... | 20428820 | 23 days ago | IN | 0 ETH | 0.00087907 | ||||
Remove Liquidity... | 20393822 | 28 days ago | IN | 0 ETH | 0.00018278 | ||||
Add Liquidity By... | 20369346 | 31 days ago | IN | 0 ETH | 0.00043959 | ||||
Remove Liquidity... | 20349509 | 34 days ago | IN | 0 ETH | 0.00029254 | ||||
Remove Liquidity... | 19997037 | 83 days ago | IN | 0 ETH | 0.00061218 | ||||
Remove Liquidity... | 19996410 | 83 days ago | IN | 0 ETH | 0.00051267 | ||||
Remove Liquidity... | 19985039 | 85 days ago | IN | 0 ETH | 0.0007255 | ||||
Remove Liquidity... | 19955382 | 89 days ago | IN | 0 ETH | 0.0005672 | ||||
Remove Liquidity... | 19955322 | 89 days ago | IN | 0 ETH | 0.00068425 | ||||
Remove Liquidity... | 19955118 | 89 days ago | IN | 0 ETH | 0.00076714 | ||||
Add Liquidity | 19954455 | 89 days ago | IN | 0 ETH | 0.000618 | ||||
Transfer Ownersh... | 19953911 | 89 days ago | IN | 0 ETH | 0.00014422 | ||||
Add Liquidity | 19946316 | 90 days ago | IN | 0 ETH | 0.00058623 | ||||
Allow Target | 19946278 | 90 days ago | IN | 0 ETH | 0.00024811 | ||||
Allow Target | 19946277 | 90 days ago | IN | 0 ETH | 0.00024586 | ||||
Allow Target | 19946276 | 90 days ago | IN | 0 ETH | 0.00026683 | ||||
Allow Target | 19946275 | 90 days ago | IN | 0 ETH | 0.00029011 | ||||
Allow Target | 19946274 | 90 days ago | IN | 0 ETH | 0.00025267 | ||||
Allow Target | 19946273 | 90 days ago | IN | 0 ETH | 0.00026004 | ||||
Allow Target | 19946272 | 90 days ago | IN | 0 ETH | 0.000254 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
FundManager
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "../common/signature/SigCheckable.sol"; import "./LiquidityManagerRole.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract FundManager is SigCheckable, LiquidityManagerRole { using SafeERC20 for IERC20; address public fiberRouter; address public settlementManager; uint32 constant WEEK = 3600 * 24 * 7; string public constant NAME = "FUND_MANAGER"; string public constant VERSION = "000.004"; bytes32 constant WITHDRAW_SIGNED_METHOD = keccak256( "WithdrawSigned(address token,address payee,uint256 amount,bytes32 salt,uint256 expiry)" ); bytes32 constant WITHDRAW_SIGNED_WITH_SWAP_METHOD = keccak256( "withdrawSignedAndSwapRouter(address to,uint256 amountIn,uint256 minAmountOut,address foundryToken,address targetToken,address router,bytes32 salt,uint256 expiry)" ); event TransferBySignature( address signer, address receiver, address token, uint256 amount ); event FailedWithdrawalCancelled( address indexed settlementManager, address indexed receiver, address indexed token, uint256 amount, bytes32 salt ); event BridgeLiquidityAdded(address actor, address token, uint256 amount); event BridgeLiquidityRemoved(address actor, address token, uint256 amount); event BridgeSwap( address from, address indexed token, uint256 targetNetwork, address targetToken, address targetAddrdess, uint256 amount ); mapping(address => bool) public signers; mapping(address => mapping(address => uint256)) private liquidities; mapping(address => mapping(uint256 => address)) public allowedTargets; mapping(address => bool) public isFoundryAsset; mapping(bytes32=>bool) public usedSalt; /** * @dev Modifier that allows only the designated fiberRouter to execute the function. * It checks if the sender is equal to the `fiberRouter` address. * @notice Ensure that `fiberRouter` is set before using this modifier. */ modifier onlyRouter() { require(msg.sender == fiberRouter, "FM: Only fiberRouter method"); _; } /** * @dev Modifier that allows only the designated settlementManager to execute the function. * It checks if the sender is equal to the `settlementManager` address. * @notice Ensure that `settlementManager` is set before using this modifier. */ modifier onlySettlementManager() { require(msg.sender == settlementManager, "FM: Only Settlement Manager"); _; } /** * @dev Contract constructor that initializes the EIP-712 domain with the specified NAME, VERSION. * @notice This constructor is called only once during the deployment of the contract. */ constructor() EIP712(NAME, VERSION) {} /** *************** Owner only operations *************** */ /** * @dev Sets the address of settlement manager * @param _settlementManager The settlement manager address */ function setSettlementManager(address _settlementManager) external onlyOwner { require(_settlementManager != address(0), "FM: Bad settlement manager"); settlementManager = _settlementManager; } /** @dev sets the fiberRouter @param _fiberRouter is the FiberRouter address */ function setRouter(address _fiberRouter) external onlyOwner { require(_fiberRouter != address(0), "FM: fiberRouter required"); fiberRouter = _fiberRouter; } /** @dev sets the signer @param _signer is the address that generate signatures */ function addSigner(address _signer) public onlyOwner { require(_signer != address(0), "Bad signer"); signers[_signer] = true; } /** @dev removes the signer @param _signer is the address that generate signatures */ function removeSigner(address _signer) external onlyOwner { require(_signer != address(0), "Bad signer"); delete signers[_signer]; } /** @dev sets the allowed target chain & token @param token is the address of foundry token on source network @param chainId target network's chain ID @param targetToken target network's foundry token address */ function allowTarget( address token, uint256 chainId, address targetToken ) external onlyAdmin { require(token != address(0), "Bad token"); require(targetToken != address(0), "Bad targetToken"); require(chainId != 0, "Bad chainId"); allowedTargets[token][chainId] = targetToken; } /** @dev removes the allowed target chain & token @param token is the address of foundry token on source network @param chainId target network's chain ID */ function disallowTarget(address token, uint256 chainId) external onlyAdmin { require(token != address(0), "Bad token"); require(chainId != 0, "Bad chainId"); delete allowedTargets[token][chainId]; } /** @dev sets the foundry token @param token is the foundry token address */ function addFoundryAsset(address token) external onlyAdmin { require(token != address(0), "Bad token"); isFoundryAsset[token] = true; } /** @dev removes the foundry token @param token is the foundry token address */ function removeFoundryAsset(address token) external onlyAdmin { require(token != address(0), "Bad token"); isFoundryAsset[token] = false; } /** * @dev Initiates an EVM token swap, exclusive to the router * @notice Ensure valid parameters and router setup * @param token The address of the token to be swapped * @param amount The amount of tokens to be swapped * @param targetNetwork The identifier of the target network for the swap * @param targetAddress The address on the target network where the swapped tokens will be sent * @return The actual amount of tokens swapped */ function swapToAddress( address token, uint256 amount, uint256 targetNetwork, address targetAddress ) external onlyRouter returns(uint256) { address targetToken = allowedTargets[token][targetNetwork]; require(token != address(0), "FM: bad token"); require(targetNetwork != 0, "FM: targetNetwork is requried"); require(targetToken != address(0), "FM: bad target token"); require(targetAddress != address(0), "FM: targetAddress is required"); require(amount != 0, "FM: bad amount"); amount = TokenReceivable.sync(token); emit BridgeSwap( msg.sender, token, targetNetwork, targetToken, targetAddress, amount ); return amount; } /** * @dev Initiates a signed token withdrawal, exclusive to the router * @notice Ensure valid parameters and router setup * @param token The token to withdraw * @param payee Address for where to send the tokens to * @param amount The amount * @param salt The salt for unique tx * @param expiry The expiration time for the signature * @param signature The multisig validator signature * @return The actual amount of tokens withdrawn */ function withdrawSigned( address token, address payee, uint256 amount, bytes32 salt, uint256 expiry, bytes memory signature ) external onlyRouter returns (uint256) { require(token != address(0), "FM: bad token"); require(payee != address(0), "FM: bad payee"); require(salt != 0, "FM: bad salt"); require(amount != 0, "FM: bad amount"); require(block.timestamp < expiry, "FM: signature timed out"); require(expiry < block.timestamp + WEEK, "FM: expiry too far"); bytes32 message = keccak256(abi.encode(WITHDRAW_SIGNED_METHOD, token, payee, amount, salt, expiry)); address _signer = signerUnique(message, signature); require(signers[_signer], "FM: Invalid signer"); require(!usedSalt[salt], "FM: salt already used"); usedSalt[salt] = true; TokenReceivable.sendToken(token, payee, amount); emit TransferBySignature(_signer, payee, token, amount); return amount; } /** * @dev Initiates a signed token withdrawal with swap, exclusive to the router * @notice Ensure valid parameters and router setup * @param to The address to withdraw to * @param amountIn The amount to be swapped in * @param minAmountOut The minimum amount out from the swap * @param foundryToken The token used in the Foundry * @param targetToken The target token for the swap * @param router The router address * @param salt The salt value for the signature * @param expiry The expiration time for the signature * @param signature The multi-signature data * @return The actual amount of tokens withdrawn from Foundry */ function withdrawSignedAndSwapRouter( address to, uint256 amountIn, uint256 minAmountOut, address foundryToken, address targetToken, address router, bytes32 salt, uint256 expiry, bytes memory signature ) external onlyRouter returns (uint256) { require(targetToken != address(0), "FM: bad token"); require(foundryToken != address(0), "FM: bad token"); require(to != address(0), "FM: bad payee"); require(salt != 0, "FM: bad salt"); require(amountIn != 0, "FM: bad amount"); require(minAmountOut != 0, "FM: bad amount"); require(block.timestamp < expiry, "FM: signature timed out"); require(expiry < block.timestamp + WEEK, "FM: expiry too far"); bytes32 message = keccak256( abi.encode( WITHDRAW_SIGNED_WITH_SWAP_METHOD, to, amountIn, minAmountOut, foundryToken, targetToken, router, salt, expiry ) ); address _signer = signerUnique(message, signature); require(signers[_signer], "FM: Invalid signer"); require(!usedSalt[salt], "FM: salt already used"); usedSalt[salt] = true; TokenReceivable.sendToken(foundryToken, msg.sender, amountIn); emit TransferBySignature(_signer, msg.sender, foundryToken, amountIn); return amountIn; } /** * @dev Verifies details of a signed token withdrawal without executing the withdrawal * @param token Token address for withdrawal * @param payee Intended recipient address * @param amount Amount of tokens to be withdrawn * @param salt Unique identifier to prevent replay attacks * @param expiry Expiration timestamp of the withdrawal signature * @param signature Cryptographic signature for verification * @return Digest and signer's address from the provided signature */ function withdrawSignedVerify( address token, address payee, uint256 amount, bytes32 salt, uint256 expiry, bytes calldata signature ) external view returns (bytes32, address) { bytes32 message = keccak256( abi.encode(WITHDRAW_SIGNED_METHOD, token, payee, amount, salt, expiry) ); (bytes32 digest, address _signer) = signer(message, signature); return (digest, _signer); } function withdrawRouter(address token, uint256 amount, address recipient) external onlyRouter { IERC20(token).transfer(recipient, amount); } /** * @dev Verifies details of a signed token swap withdrawal without execution * @param to Recipient address on the target network * @param amountIn Tokens withdrawn from Foundry * @param minAmountOut The minimum tokens on the target network * @param foundryToken Token withdrawn from Foundry * @param targetToken Token on the target network * @param router The router address * @param salt Unique identifier to prevent replay attacks * @param expiry Expiration timestamp of the withdrawal signature * @param signature Cryptographic signature for verification * @return Digest and signer's address from the provided signature */ function withdrawSignedAndSwapRouterVerify( address to, uint256 amountIn, uint256 minAmountOut, address foundryToken, address targetToken, address router, bytes32 salt, uint256 expiry, bytes calldata signature ) external view returns (bytes32, address) { bytes32 message = keccak256( abi.encode( WITHDRAW_SIGNED_WITH_SWAP_METHOD, to, amountIn, minAmountOut, foundryToken, targetToken, router, salt, expiry ) ); (bytes32 digest, address _signer) = signer(message, signature); return (digest, _signer); } /** * @dev Cancels a signed token withdrawal * @param token The token to withdraw * @param payee Address for where to send the tokens to * @param amount The amount * @param salt The salt for unique tx * @param expiry The expiration time for the signature * @param signature The multisig validator signature */ function cancelFailedWithdrawSigned( address token, address payee, uint256 amount, bytes32 salt, uint256 expiry, bytes memory signature ) external onlySettlementManager { require(token != address(0), "FM: bad token"); require(payee != address(0), "FM: bad payee"); require(salt != 0, "FM: bad salt"); require(amount != 0, "FM: bad amount"); require(block.timestamp < expiry, "FM: signature timed out"); require(expiry < block.timestamp + WEEK, "FM: expiry too far"); bytes32 message = keccak256( abi.encode(WITHDRAW_SIGNED_METHOD, token, payee, amount, salt, expiry) ); address _signer = signerUnique(message, signature); require(signers[_signer], "FM: Invalid signer"); require(!usedSalt[salt], "FM: salt already used"); usedSalt[salt] = true; emit FailedWithdrawalCancelled(settlementManager, payee, token, amount, salt); } /** * @dev Cancels a signed token swap withdrawal * @notice Ensure valid parameters and router setup * @param to The address to withdraw to * @param amountIn The amount to be swapped in * @param minAmountOut The minimum amount out from the swap * @param foundryToken The token used in the Foundry * @param targetToken The target token for the swap * @param router The router address * @param salt The salt value for the signature * @param expiry The expiration time for the signature * @param signature The multi-signature data */ function cancelFailedwithdrawSignedAndSwapRouter( address to, uint256 amountIn, uint256 minAmountOut, address foundryToken, address targetToken, address router, bytes32 salt, uint256 expiry, bytes memory signature ) external onlySettlementManager { require(targetToken != address(0), "FM: bad token"); require(foundryToken != address(0), "FM: bad token"); require(to != address(0), "FM: bad payee"); require(salt != 0, "FM: bad salt"); require(amountIn != 0, "FM: bad amount"); require(minAmountOut != 0, "FM: bad amount"); require(block.timestamp < expiry, "FM: signature timed out"); require(expiry < block.timestamp + WEEK, "FM: expiry too far"); bytes32 message = keccak256( abi.encode( WITHDRAW_SIGNED_WITH_SWAP_METHOD, to, amountIn, minAmountOut, foundryToken, targetToken, router, salt, expiry ) ); address _signer = signerUnique(message, signature); require(signers[_signer], "FM: Invalid signer"); require(!usedSalt[salt], "FM: salt already used"); usedSalt[salt] = true; emit FailedWithdrawalCancelled(settlementManager, to, targetToken, amountIn, salt); } /** * @dev Adds liquidity for the specified token. * @param token Token address for liquidity. * @param amount Amount of tokens to be added. */ function addLiquidity(address token, uint256 amount) external { require(amount != 0, "FM: Amount must be positive"); require(token != address(0), "FM: Bad token"); require( isFoundryAsset[token] == true, "FM: Only foundry assets can be added" ); liquidities[token][msg.sender] += amount; amount = SafeAmount.safeTransferFrom( token, msg.sender, address(this), amount ); amount = TokenReceivable.sync(token); emit BridgeLiquidityAdded(msg.sender, token, amount); } /** * @dev Removes possible liquidity for the specified token. * @param token Token address for liquidity removal. * @param amount Amount of tokens to be removed. * @return Actual amount of tokens removed. */ function removeLiquidityIfPossible(address token, uint256 amount) external returns (uint256) { require(amount != 0, "FM: Amount must be positive"); require(token != address(0), "FM: Bad token"); require( isFoundryAsset[token] == true, "FM: Only foundry assets can be removed" ); uint256 liq = liquidities[token][msg.sender]; require(liq >= amount, "FM: Not enough liquidity"); uint256 balance = IERC20(token).balanceOf(address(this)); uint256 actualLiq = balance > amount ? amount : balance; if (actualLiq != 0) { liquidities[token][msg.sender] -= actualLiq; TokenReceivable.sendToken(token, msg.sender, actualLiq); emit BridgeLiquidityRemoved(msg.sender, token, amount); } return actualLiq; } /** * @dev Retrieves liquidity for the specified token and liquidity adder. * @param token Token address for liquidity. * @param liquidityAdder Address of the liquidity adder. * @return Current liquidity amount. */ function liquidity(address token, address liquidityAdder) external view returns (uint256) { return liquidities[token][liquidityAdder]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) { return keccak256( abi.encode( typeHash, name, version, block.chainid, address(this) ) ); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } } else if (signature.length == 64) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { let vs := mload(add(signature, 0x40)) r := mload(add(signature, 0x20)) s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } } else { revert("ECDSA: invalid signature length"); } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; // import "@openzeppelin//contracts/token/ERC20/IERC20.sol"; library SafeAmount { using SafeERC20 for IERC20; /** @notice transfer tokens from. Incorporate fee on transfer tokens @param token The token @param from From address @param to To address @param amount The amount @return result The actual amount transferred */ function safeTransferFrom( address token, address from, address to, uint256 amount) internal returns (uint256 result) { uint256 preBalance = IERC20(token).balanceOf(to); IERC20(token).safeTransferFrom(from, to, amount); uint256 postBalance = IERC20(token).balanceOf(to); result = postBalance - preBalance; require(result <= amount, "SA: actual amount larger than transfer amount"); } /** @notice Sends ETH @param to The to address @param value The amount */ function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'TransferHelper::safeTransferETH: ETH transfer failed'); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /** @dev Make sure to define method signatures */ abstract contract SigCheckable is EIP712 { function signerUnique( bytes32 message, bytes memory signature) internal view returns (address _signer) { bytes32 digest; (digest, _signer) = signer(message, signature); } /* @dev example message; bytes32 constant METHOD_SIG = keccak256("WithdrawSigned(address token,address payee,uint256 amount,bytes32 salt)"); bytes32 message = keccak256(abi.encode( METHOD_SIG, token, payee, amount, salt */ function signer( bytes32 message, bytes memory signature) internal view returns (bytes32 digest, address _signer) { digest = _hashTypedDataV4(message); _signer = ECDSA.recover(digest, signature); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; /** * @notice Library for handling safe token transactions including fee per transaction tokens. */ abstract contract TokenReceivable is ReentrancyGuard { using SafeERC20 for IERC20; mapping(address => uint256) public inventory; // Amount of received tokens that are accounted for /** @notice Sync the inventory of a token based on amount changed @param token The token address @return amount The changed amount */ function sync(address token) internal nonReentrant returns (uint256 amount) { uint256 inv = inventory[token]; uint256 balance = IERC20(token).balanceOf(address(this)); amount = balance - inv; inventory[token] = balance; } /** @notice Safely sends a token out and updates the inventory @param token The token address @param payee The payee @param amount The amount */ function sendToken(address token, address payee, uint256 amount) internal nonReentrant { inventory[token] = inventory[token] - amount; IERC20(token).safeTransfer(payee, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/access/Ownable.sol"; contract WithAdmin is Ownable { address public admin; event AdminSet(address admin); function setAdmin(address _admin) external onlyOwner { admin = _admin; emit AdminSet(_admin); } modifier onlyAdmin() { require(msg.sender == admin || msg.sender == owner(), "WA: not admin"); _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../common/WithAdmin.sol"; import "../common/SafeAmount.sol"; import "../common/tokenReceiveable.sol"; abstract contract LiquidityManagerRole is WithAdmin, TokenReceivable { using SafeERC20 for IERC20; address public liquidityManager; address public liquidityManagerBot; address public withdrawalAddress; event LiquidityAddedByManager(address token, uint256 amount); event LiquidityRemovedByManager(address token, uint256 amount, address withdrawalAddress); /** * @dev Modifier that allows only the designated liquidity managers to execute the function. * It checks if the sender is either `liquidityManager` or `liquidityManagerBot`. * @notice Ensure that `liquidityManager` and `liquidityManagerBot` are set before using this modifier. */ modifier onlyLiquidityManager() { require( msg.sender == liquidityManager || msg.sender == liquidityManagerBot, "FM: Only liquidity managers" ); _; } /** * @dev Sets the addresses of liquidity managers * @param _liquidityManager The primary liquidity manager address * @param _liquidityManagerBot The secondary liquidity manager address */ function setLiquidityManagers(address _liquidityManager, address _liquidityManagerBot) external onlyOwner { require(_liquidityManager != address(0), "FM: Bad liquidity manager"); require(_liquidityManagerBot != address(0), "FM: Bad liquidity manager bot"); liquidityManager = _liquidityManager; liquidityManagerBot = _liquidityManagerBot; } /** * @dev Sets the address for withdrawal of liquidity * @param _withdrawalAddress The liquidity withdraw address */ function setWithdrawalAddress(address _withdrawalAddress) external onlyOwner { withdrawalAddress = _withdrawalAddress; } /** * @dev Adds specified liquidity for the given token * @param token Token address for liquidity addition * @param amount Amount of tokens to be added */ function addLiquidityByManager(address token, uint256 amount) external onlyLiquidityManager { require(amount != 0, "FM: Amount must be positive"); require(token != address(0), "FM: Bad token"); // Transfer tokens from the sender to the FundManager SafeAmount.safeTransferFrom(token, msg.sender, address(this), amount); // Update the inventory using sync amount = TokenReceivable.sync(token); emit LiquidityAddedByManager(token, amount); } /** * @dev Removes specified liquidity for the given token * @param token Token address for liquidity removal * @param amount Amount of tokens to be removed * @return Actual amount of tokens removed */ function removeLiquidityByManager(address token, uint256 amount) external onlyLiquidityManager returns (uint256) { require(amount != 0, "FM: Amount must be positive"); require(token != address(0), "FM: Bad token"); // Check the Token balance of FundManager require(IERC20(token).balanceOf(address(this)) >= amount, "FM: Insufficient balance"); // Transfer tokens to the withdrawal address using sendToken TokenReceivable.sendToken(token, withdrawalAddress, amount); emit LiquidityRemovedByManager(token, amount, withdrawalAddress); return amount; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"AdminSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"actor","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BridgeLiquidityAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"actor","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BridgeLiquidityRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"targetNetwork","type":"uint256"},{"indexed":false,"internalType":"address","name":"targetToken","type":"address"},{"indexed":false,"internalType":"address","name":"targetAddrdess","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BridgeSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"settlementManager","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"FailedWithdrawalCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LiquidityAddedByManager","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"withdrawalAddress","type":"address"}],"name":"LiquidityRemovedByManager","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"signer","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferBySignature","type":"event"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"addFoundryAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addLiquidityByManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"addSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"targetToken","type":"address"}],"name":"allowTarget","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"allowedTargets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"payee","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"cancelFailedWithdrawSigned","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"foundryToken","type":"address"},{"internalType":"address","name":"targetToken","type":"address"},{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"cancelFailedwithdrawSignedAndSwapRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"name":"disallowTarget","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fiberRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"inventory","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isFoundryAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"liquidityAdder","type":"address"}],"name":"liquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityManagerBot","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeFoundryAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"removeLiquidityByManager","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"removeLiquidityIfPossible","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"removeSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_liquidityManager","type":"address"},{"internalType":"address","name":"_liquidityManagerBot","type":"address"}],"name":"setLiquidityManagers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fiberRouter","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_settlementManager","type":"address"}],"name":"setSettlementManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawalAddress","type":"address"}],"name":"setWithdrawalAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settlementManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"signers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"targetNetwork","type":"uint256"},{"internalType":"address","name":"targetAddress","type":"address"}],"name":"swapToAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"usedSalt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"withdrawRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"payee","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdrawSigned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"foundryToken","type":"address"},{"internalType":"address","name":"targetToken","type":"address"},{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdrawSignedAndSwapRouter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"foundryToken","type":"address"},{"internalType":"address","name":"targetToken","type":"address"},{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdrawSignedAndSwapRouterVerify","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"payee","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdrawSignedVerify","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
61012060405234801561001157600080fd5b50604080518082018252600c81526b232aa7222fa6a0a720a3a2a960a11b60208083019182528351808501855260078152660c0c0c0b8c0c0d60ca1b908201529151902060c08181527fa03408cf072d92154dd19fd8cfe404b94d1b795118dd310c162bfba3a3b7aac160e08190524660a081815286517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8188018190528189019690965260608101939093526080808401929092523083820152865180840390910181529190920194859052805193019290922090915261010052600080546001600160a01b031916339081178255918291907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600160025560805160a05160c05160e0516101005161360461017460003960006129d601526000612a2501526000612a0001526000612985015260006129ad01526136046000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c80638da5cb5b1161013b578063d3d0c9f7116100b8578063f2117d451161007c578063f2117d45146105dc578063f2bcd022146105ef578063f2fde38b14610602578063f851a44014610615578063ffa1ad741461062857600080fd5b8063d3d0c9f71461057d578063dcb0f2d314610590578063de7bfcdf146105a3578063e91b79bc146105b6578063eb12d61e146105c957600080fd5b8063b2217281116100ff578063b2217281146104eb578063b5b3b6d214610524578063b5fd282a14610537578063c0d7865514610557578063ca38f4181461056a57600080fd5b80638da5cb5b1461045957806395d5cca81461046a5780639d5dbd2c1461047d5780639d90d0a114610490578063a3f4df7e146104b357600080fd5b806356688700116101c957806371f174c11161018d57806371f174c1146103ad578063736c0d5b146103dd57806378ce6969146104105780637d46872e14610423578063816c1c621461043657600080fd5b8063566887001461034b5780635dbdcdad1461035e5780636aa1354414610371578063704b6c0214610392578063715018a6146103a557600080fd5b806325bc62371161021057806325bc6237146102cb578063278c13fe146102de5780632839c21a14610312578063338274381461032557806344da82711461033857600080fd5b8063050881441461024d5780630556df0f1461027d5780630e316ab71461029257806321b8092e146102a557806322905249146102b8575b600080fd5b600554610260906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61029061028b366004612da9565b61064e565b005b6102906102a0366004612da9565b6106f9565b6102906102b3366004612da9565b610787565b6102906102c6366004612e67565b6107d3565b6102906102d9366004612f0e565b610a9b565b6102606102ec366004612f88565b600b6020908152600092835260408084209091529082529020546001600160a01b031681565b610290610320366004612da9565b610d14565b600454610260906001600160a01b031681565b610290610346366004612fb2565b610d9d565b610290610359366004612f88565b610ec3565b600854610260906001600160a01b031681565b61038461037f366004612f88565b611023565b604051908152602001610274565b6102906103a0366004612da9565b611201565b61029061127f565b6103c06103bb366004613037565b6112f3565b604080519283526001600160a01b03909116602083015201610274565b6104006103eb366004612da9565b60096020526000908152604090205460ff1681565b6040519015158152602001610274565b61038461041e366004612f0e565b6113ab565b610290610431366004612fb2565b6115fd565b6104006104443660046130e8565b600d6020526000908152604090205460ff1681565b6000546001600160a01b0316610260565b610290610478366004613101565b6116a0565b61029061048b366004612f88565b6117a4565b61040061049e366004612da9565b600c6020526000908152604090205460ff1681565b6104de6040518060400160405280600c81526020016b232aa7222fa6a0a720a3a2a960a11b81525081565b604051610274919061314f565b6103846104f9366004613101565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205490565b600754610260906001600160a01b031681565b610384610545366004612da9565b60036020526000908152604090205481565b610290610565366004612da9565b6118b1565b610384610578366004612e67565b611953565b6103c061058b366004613182565b611bf2565b61029061059e366004612f88565b611ca0565b6103846105b1366004613204565b611d76565b6103846105c4366004612f88565b611f6d565b6102906105d7366004612da9565b6121c2565b6102906105ea366004612da9565b612253565b600654610260906001600160a01b031681565b610290610610366004612da9565b6122d9565b600154610260906001600160a01b031681565b6104de604051806040016040528060078152602001660c0c0c0b8c0c0d60ca1b81525081565b6000546001600160a01b031633146106815760405162461bcd60e51b81526004016106789061324a565b60405180910390fd5b6001600160a01b0381166106d75760405162461bcd60e51b815260206004820152601a60248201527f464d3a2042616420736574746c656d656e74206d616e616765720000000000006044820152606401610678565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146107235760405162461bcd60e51b81526004016106789061324a565b6001600160a01b0381166107665760405162461bcd60e51b815260206004820152600a6024820152692130b21039b4b3b732b960b11b6044820152606401610678565b6001600160a01b03166000908152600960205260409020805460ff19169055565b6000546001600160a01b031633146107b15760405162461bcd60e51b81526004016106789061324a565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b0316331461082d5760405162461bcd60e51b815260206004820152601b60248201527f464d3a204f6e6c7920536574746c656d656e74204d616e6167657200000000006044820152606401610678565b6001600160a01b0385166108535760405162461bcd60e51b81526004016106789061327f565b6001600160a01b0386166108795760405162461bcd60e51b81526004016106789061327f565b6001600160a01b03891661089f5760405162461bcd60e51b8152600401610678906132a6565b60008390036108c05760405162461bcd60e51b8152600401610678906132cd565b876000036108e05760405162461bcd60e51b8152600401610678906132f3565b866000036109005760405162461bcd60e51b8152600401610678906132f3565b81421061091f5760405162461bcd60e51b81526004016106789061331b565b61092c62093a8042613368565b821061094a5760405162461bcd60e51b81526004016106789061337b565b60007facc13f04d4db76f939fe9b2c602b8fc3f728cb4afcf8bd24e500ca1e550781778a8a8a8a8a8a8a8a60405160200161098d999897969594939291906133a7565b60405160208183030381529060405280519060200120905060006109b182846123c3565b6001600160a01b03811660009081526009602052604090205490915060ff166109ec5760405162461bcd60e51b8152600401610678906133f6565b6000858152600d602052604090205460ff1615610a1b5760405162461bcd60e51b815260040161067890613422565b6000858152600d602052604090819020805460ff1916600117905560085490516001600160a01b03808a16928e8216929116907f7920f0476a5a3d6e9b3aed4246e558312df4dc04642806553a405af5d684d3e290610a86908f908b90918252602082015260400190565b60405180910390a45050505050505050505050565b6008546001600160a01b03163314610af55760405162461bcd60e51b815260206004820152601b60248201527f464d3a204f6e6c7920536574746c656d656e74204d616e6167657200000000006044820152606401610678565b6001600160a01b038616610b1b5760405162461bcd60e51b81526004016106789061327f565b6001600160a01b038516610b415760405162461bcd60e51b8152600401610678906132a6565b6000839003610b625760405162461bcd60e51b8152600401610678906132cd565b83600003610b825760405162461bcd60e51b8152600401610678906132f3565b814210610ba15760405162461bcd60e51b81526004016106789061331b565b610bae62093a8042613368565b8210610bcc5760405162461bcd60e51b81526004016106789061337b565b60007f65ec88abe38b75940cc431ebd9d6fb3fe7530518ece929d9251993609d095bfc8787878787604051602001610c0996959493929190613451565b6040516020818303038152906040528051906020012090506000610c2d82846123c3565b6001600160a01b03811660009081526009602052604090205490915060ff16610c685760405162461bcd60e51b8152600401610678906133f6565b6000858152600d602052604090205460ff1615610c975760405162461bcd60e51b815260040161067890613422565b6000858152600d602052604090819020805460ff1916600117905560085490516001600160a01b03808b16928a8216929116907f7920f0476a5a3d6e9b3aed4246e558312df4dc04642806553a405af5d684d3e290610d02908b908b90918252602082015260400190565b60405180910390a45050505050505050565b6001546001600160a01b0316331480610d3757506000546001600160a01b031633145b610d535760405162461bcd60e51b815260040161067890613485565b6001600160a01b038116610d795760405162461bcd60e51b8152600401610678906134ac565b6001600160a01b03166000908152600c60205260409020805460ff19166001179055565b6001546001600160a01b0316331480610dc057506000546001600160a01b031633145b610ddc5760405162461bcd60e51b815260040161067890613485565b6001600160a01b038316610e025760405162461bcd60e51b8152600401610678906134ac565b6001600160a01b038116610e4a5760405162461bcd60e51b815260206004820152600f60248201526e2130b2103a30b933b2ba2a37b5b2b760891b6044820152606401610678565b81600003610e885760405162461bcd60e51b815260206004820152600b60248201526a1098590818da185a5b925960aa1b6044820152606401610678565b6001600160a01b039283166000908152600b602090815260408083209483529390529190912080546001600160a01b03191691909216179055565b80600003610ee35760405162461bcd60e51b8152600401610678906134cf565b6001600160a01b038216610f095760405162461bcd60e51b815260040161067890613506565b6001600160a01b0382166000908152600c602052604090205460ff161515600114610f825760405162461bcd60e51b8152602060048201526024808201527f464d3a204f6e6c7920666f756e647279206173736574732063616e20626520616044820152631919195960e21b6064820152608401610678565b6001600160a01b0382166000908152600a6020908152604080832033845290915281208054839290610fb5908490613368565b90915550610fc79050823330846123d0565b9050610fd282612542565b604080513381526001600160a01b03851660208201529081018290529091507fef3f81f7842dc4087d754ab30e98bb596b7345a806ff6db3c82f0c7d77b74960906060015b60405180910390a15050565b6004546000906001600160a01b031633148061104957506005546001600160a01b031633145b6110955760405162461bcd60e51b815260206004820152601b60248201527f464d3a204f6e6c79206c6971756964697479206d616e616765727300000000006044820152606401610678565b816000036110b55760405162461bcd60e51b8152600401610678906134cf565b6001600160a01b0383166110db5760405162461bcd60e51b815260040161067890613506565b6040516370a0823160e01b815230600482015282906001600160a01b038516906370a0823190602401602060405180830381865afa158015611121573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611145919061352d565b10156111935760405162461bcd60e51b815260206004820152601860248201527f464d3a20496e73756666696369656e742062616c616e636500000000000000006044820152606401610678565b6006546111ab9084906001600160a01b031684612642565b600654604080516001600160a01b0386811682526020820186905290921682820152517f1f25b5e6960a43be27d599c4643d7e7d7f7c5cc8d0a77ef795583b6abe4ada7d9181900360600190a150805b92915050565b6000546001600160a01b0316331461122b5760405162461bcd60e51b81526004016106789061324a565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f8fe72c3e0020beb3234e76ae6676fa576fbfcae600af1c4fea44784cf0db329c9060200160405180910390a150565b6000546001600160a01b031633146112a95760405162461bcd60e51b81526004016106789061324a565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60008060007facc13f04d4db76f939fe9b2c602b8fc3f728cb4afcf8bd24e500ca1e550781778d8d8d8d8d8d8d8d604051602001611339999897969594939291906133a7565b6040516020818303038152906040528051906020012090506000806113948388888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506126ec92505050565b90955093505050509a509a98505050505050505050565b6007546000906001600160a01b031633146113d85760405162461bcd60e51b815260040161067890613546565b6001600160a01b0387166113fe5760405162461bcd60e51b81526004016106789061327f565b6001600160a01b0386166114245760405162461bcd60e51b8152600401610678906132a6565b60008490036114455760405162461bcd60e51b8152600401610678906132cd565b846000036114655760405162461bcd60e51b8152600401610678906132f3565b8242106114845760405162461bcd60e51b81526004016106789061331b565b61149162093a8042613368565b83106114af5760405162461bcd60e51b81526004016106789061337b565b60007f65ec88abe38b75940cc431ebd9d6fb3fe7530518ece929d9251993609d095bfc88888888886040516020016114ec96959493929190613451565b604051602081830303815290604052805190602001209050600061151082856123c3565b6001600160a01b03811660009081526009602052604090205490915060ff1661154b5760405162461bcd60e51b8152600401610678906133f6565b6000868152600d602052604090205460ff161561157a5760405162461bcd60e51b815260040161067890613422565b6000868152600d60205260409020805460ff1916600117905561159e898989612642565b604080516001600160a01b0383811682528a811660208301528b16818301526060810189905290517f20866f1bbd1aa6fdb9e631ab723d2060dcc7e4719ec6a43ecd7231557dcec8d99181900360800190a15094979650505050505050565b6007546001600160a01b031633146116275760405162461bcd60e51b815260040161067890613546565b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb906044016020604051808303816000875af1158015611676573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169a919061357d565b50505050565b6000546001600160a01b031633146116ca5760405162461bcd60e51b81526004016106789061324a565b6001600160a01b0382166117205760405162461bcd60e51b815260206004820152601960248201527f464d3a20426164206c6971756964697479206d616e61676572000000000000006044820152606401610678565b6001600160a01b0381166117765760405162461bcd60e51b815260206004820152601d60248201527f464d3a20426164206c6971756964697479206d616e6167657220626f740000006044820152606401610678565b600480546001600160a01b039384166001600160a01b03199182161790915560058054929093169116179055565b6004546001600160a01b03163314806117c757506005546001600160a01b031633145b6118135760405162461bcd60e51b815260206004820152601b60248201527f464d3a204f6e6c79206c6971756964697479206d616e616765727300000000006044820152606401610678565b806000036118335760405162461bcd60e51b8152600401610678906134cf565b6001600160a01b0382166118595760405162461bcd60e51b815260040161067890613506565b611865823330846123d0565b5061186f82612542565b604080516001600160a01b0385168152602081018390529192507fe2a997b821bbe7231610ff5bec588c01d5203839598bc10d13f73e1f7b65c5229101611017565b6000546001600160a01b031633146118db5760405162461bcd60e51b81526004016106789061324a565b6001600160a01b0381166119315760405162461bcd60e51b815260206004820152601860248201527f464d3a206669626572526f7574657220726571756972656400000000000000006044820152606401610678565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6007546000906001600160a01b031633146119805760405162461bcd60e51b815260040161067890613546565b6001600160a01b0386166119a65760405162461bcd60e51b81526004016106789061327f565b6001600160a01b0387166119cc5760405162461bcd60e51b81526004016106789061327f565b6001600160a01b038a166119f25760405162461bcd60e51b8152600401610678906132a6565b6000849003611a135760405162461bcd60e51b8152600401610678906132cd565b88600003611a335760405162461bcd60e51b8152600401610678906132f3565b87600003611a535760405162461bcd60e51b8152600401610678906132f3565b824210611a725760405162461bcd60e51b81526004016106789061331b565b611a7f62093a8042613368565b8310611a9d5760405162461bcd60e51b81526004016106789061337b565b60007facc13f04d4db76f939fe9b2c602b8fc3f728cb4afcf8bd24e500ca1e550781778b8b8b8b8b8b8b8b604051602001611ae0999897969594939291906133a7565b6040516020818303038152906040528051906020012090506000611b0482856123c3565b6001600160a01b03811660009081526009602052604090205490915060ff16611b3f5760405162461bcd60e51b8152600401610678906133f6565b6000868152600d602052604090205460ff1615611b6e5760405162461bcd60e51b815260040161067890613422565b6000868152600d60205260409020805460ff19166001179055611b9289338d612642565b604080516001600160a01b0383811682523360208301528b1681830152606081018d905290517f20866f1bbd1aa6fdb9e631ab723d2060dcc7e4719ec6a43ecd7231557dcec8d99181900360800190a150989a9950505050505050505050565b60008060007f65ec88abe38b75940cc431ebd9d6fb3fe7530518ece929d9251993609d095bfc8a8a8a8a8a604051602001611c3296959493929190613451565b604051602081830303815290604052805190602001209050600080611c8d8388888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506126ec92505050565b909d909c509a5050505050505050505050565b6001546001600160a01b0316331480611cc357506000546001600160a01b031633145b611cdf5760405162461bcd60e51b815260040161067890613485565b6001600160a01b038216611d055760405162461bcd60e51b8152600401610678906134ac565b80600003611d435760405162461bcd60e51b815260206004820152600b60248201526a1098590818da185a5b925960aa1b6044820152606401610678565b6001600160a01b039091166000908152600b602090815260408083209383529290522080546001600160a01b0319169055565b6007546000906001600160a01b03163314611da35760405162461bcd60e51b815260040161067890613546565b6001600160a01b038086166000818152600b6020908152604080832088845290915290205490911690611de85760405162461bcd60e51b81526004016106789061327f565b83600003611e385760405162461bcd60e51b815260206004820152601d60248201527f464d3a207461726765744e6574776f726b2069732072657175726965640000006044820152606401610678565b6001600160a01b038116611e855760405162461bcd60e51b815260206004820152601460248201527323269d103130b2103a30b933b2ba103a37b5b2b760611b6044820152606401610678565b6001600160a01b038316611edb5760405162461bcd60e51b815260206004820152601d60248201527f464d3a20746172676574416464726573732069732072657175697265640000006044820152606401610678565b84600003611efb5760405162461bcd60e51b8152600401610678906132f3565b611f0486612542565b60408051338152602081018790526001600160a01b03848116828401528681166060830152608082018490529151929750908816917f0752ea9a96cdaf45ba08b0e73e0bbecc3d4a19e96da74d1ac80edea784d4c62c9181900360a00190a25092949350505050565b600081600003611f8f5760405162461bcd60e51b8152600401610678906134cf565b6001600160a01b038316611fb55760405162461bcd60e51b815260040161067890613506565b6001600160a01b0383166000908152600c602052604090205460ff1615156001146120315760405162461bcd60e51b815260206004820152602660248201527f464d3a204f6e6c7920666f756e647279206173736574732063616e2062652072604482015265195b5bdd995960d21b6064820152608401610678565b6001600160a01b0383166000908152600a60209081526040808320338452909152902054828110156120a55760405162461bcd60e51b815260206004820152601860248201527f464d3a204e6f7420656e6f756768206c697175696469747900000000000000006044820152606401610678565b6040516370a0823160e01b81523060048201526000906001600160a01b038616906370a0823190602401602060405180830381865afa1580156120ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612110919061352d565b905060008482116121215781612123565b845b905080156121b9576001600160a01b0386166000908152600a602090815260408083203384529091528120805483929061215e90849061359f565b9091555061216f9050863383612642565b604080513381526001600160a01b03881660208201529081018690527f5204091f3aba3d16dbb7fcc090386ce24245ac12f57ae5bf9785e0ab9a79be739060600160405180910390a15b95945050505050565b6000546001600160a01b031633146121ec5760405162461bcd60e51b81526004016106789061324a565b6001600160a01b03811661222f5760405162461bcd60e51b815260206004820152600a6024820152692130b21039b4b3b732b960b11b6044820152606401610678565b6001600160a01b03166000908152600960205260409020805460ff19166001179055565b6001546001600160a01b031633148061227657506000546001600160a01b031633145b6122925760405162461bcd60e51b815260040161067890613485565b6001600160a01b0381166122b85760405162461bcd60e51b8152600401610678906134ac565b6001600160a01b03166000908152600c60205260409020805460ff19169055565b6000546001600160a01b031633146123035760405162461bcd60e51b81526004016106789061324a565b6001600160a01b0381166123685760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610678565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806121b984846126ec565b6040516370a0823160e01b81526001600160a01b03838116600483015260009182918716906370a0823190602401602060405180830381865afa15801561241b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061243f919061352d565b90506124566001600160a01b03871686868661270d565b6040516370a0823160e01b81526001600160a01b038581166004830152600091908816906370a0823190602401602060405180830381865afa1580156124a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124c4919061352d565b90506124d0828261359f565b9250838311156125385760405162461bcd60e51b815260206004820152602d60248201527f53413a2061637475616c20616d6f756e74206c6172676572207468616e20747260448201526c185b9cd9995c88185b5bdd5b9d609a1b6064820152608401610678565b5050949350505050565b600060028054036125955760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610678565b600280556001600160a01b0382166000818152600360205260408082205490516370a0823160e01b81523060048201529092906370a0823190602401602060405180830381865afa1580156125ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612612919061352d565b905061261e828261359f565b6001600160a01b039094166000908152600360205260409020555050600160025590565b60028054036126935760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610678565b600280556001600160a01b0383166000908152600360205260409020546126bb90829061359f565b6001600160a01b0384166000818152600360205260409020919091556126e2908383612778565b5050600160025550565b6000806126f8846127ad565b915061270482846127fb565b90509250929050565b6040516001600160a01b038085166024830152831660448201526064810182905261169a9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526128af565b6040516001600160a01b0383166024820152604481018290526127a890849063a9059cbb60e01b90606401612741565b505050565b60006111fb6127ba612981565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060008084516041036128245750505060208201516040830151606084015160001a612899565b84516040036128515750505060408201516020830151906001600160ff1b0381169060ff1c601b01612899565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610678565b6128a586828585612a73565b9695505050505050565b6000612904826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612c139092919063ffffffff16565b8051909150156127a85780806020019051810190612922919061357d565b6127a85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610678565b60007f000000000000000000000000000000000000000000000000000000000000000046036129cf57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612af05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610678565b8360ff16601b1480612b0557508360ff16601c145b612b5c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610678565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612bb0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166121b95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610678565b6060612c228484600085612c2c565b90505b9392505050565b606082471015612c8d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610678565b843b612cdb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610678565b600080866001600160a01b03168587604051612cf791906135b2565b60006040518083038185875af1925050503d8060008114612d34576040519150601f19603f3d011682016040523d82523d6000602084013e612d39565b606091505b5091509150612d49828286612d54565b979650505050505050565b60608315612d63575081612c25565b825115612d735782518084602001fd5b8160405162461bcd60e51b8152600401610678919061314f565b80356001600160a01b0381168114612da457600080fd5b919050565b600060208284031215612dbb57600080fd5b612c2582612d8d565b634e487b7160e01b600052604160045260246000fd5b600082601f830112612deb57600080fd5b813567ffffffffffffffff80821115612e0657612e06612dc4565b604051601f8301601f19908116603f01168101908282118183101715612e2e57612e2e612dc4565b81604052838152866020858801011115612e4757600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060008060006101208a8c031215612e8657600080fd5b612e8f8a612d8d565b985060208a0135975060408a01359650612eab60608b01612d8d565b9550612eb960808b01612d8d565b9450612ec760a08b01612d8d565b935060c08a0135925060e08a013591506101008a013567ffffffffffffffff811115612ef257600080fd5b612efe8c828d01612dda565b9150509295985092959850929598565b60008060008060008060c08789031215612f2757600080fd5b612f3087612d8d565b9550612f3e60208801612d8d565b945060408701359350606087013592506080870135915060a087013567ffffffffffffffff811115612f6f57600080fd5b612f7b89828a01612dda565b9150509295509295509295565b60008060408385031215612f9b57600080fd5b612fa483612d8d565b946020939093013593505050565b600080600060608486031215612fc757600080fd5b612fd084612d8d565b925060208401359150612fe560408501612d8d565b90509250925092565b60008083601f84011261300057600080fd5b50813567ffffffffffffffff81111561301857600080fd5b60208301915083602082850101111561303057600080fd5b9250929050565b6000806000806000806000806000806101208b8d03121561305757600080fd5b6130608b612d8d565b995060208b0135985060408b0135975061307c60608c01612d8d565b965061308a60808c01612d8d565b955061309860a08c01612d8d565b945060c08b0135935060e08b013592506101008b013567ffffffffffffffff8111156130c357600080fd5b6130cf8d828e01612fee565b915080935050809150509295989b9194979a5092959850565b6000602082840312156130fa57600080fd5b5035919050565b6000806040838503121561311457600080fd5b61311d83612d8d565b915061270460208401612d8d565b60005b8381101561314657818101518382015260200161312e565b50506000910152565b602081526000825180602084015261316e81604085016020870161312b565b601f01601f19169190910160400192915050565b600080600080600080600060c0888a03121561319d57600080fd5b6131a688612d8d565b96506131b460208901612d8d565b955060408801359450606088013593506080880135925060a088013567ffffffffffffffff8111156131e557600080fd5b6131f18a828b01612fee565b989b979a50959850939692959293505050565b6000806000806080858703121561321a57600080fd5b61322385612d8d565b9350602085013592506040850135915061323f60608601612d8d565b905092959194509250565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600d908201526c23269d103130b2103a37b5b2b760991b604082015260600190565b6020808252600d908201526c464d3a2062616420706179656560981b604082015260600190565b6020808252600c908201526b11934e88189859081cd85b1d60a21b604082015260600190565b6020808252600e908201526d11934e8818985908185b5bdd5b9d60921b604082015260600190565b60208082526017908201527f464d3a207369676e61747572652074696d6564206f7574000000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156111fb576111fb613352565b60208082526012908201527123269d1032bc3834b93c903a37b7903330b960711b604082015260600190565b9889526001600160a01b0397881660208a0152604089019690965260608801949094529185166080870152841660a086015290921660c084015260e08301919091526101008201526101200190565b60208082526012908201527123269d1024b73b30b634b21039b4b3b732b960711b604082015260600190565b60208082526015908201527411934e881cd85b1d08185b1c9958591e481d5cd959605a1b604082015260600190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b6020808252600d908201526c2ba09d103737ba1030b236b4b760991b604082015260600190565b6020808252600990820152682130b2103a37b5b2b760b91b604082015260600190565b6020808252601b908201527f464d3a20416d6f756e74206d75737420626520706f7369746976650000000000604082015260600190565b6020808252600d908201526c23269d102130b2103a37b5b2b760991b604082015260600190565b60006020828403121561353f57600080fd5b5051919050565b6020808252601b908201527f464d3a204f6e6c79206669626572526f75746572206d6574686f640000000000604082015260600190565b60006020828403121561358f57600080fd5b81518015158114612c2557600080fd5b818103818111156111fb576111fb613352565b600082516135c481846020870161312b565b919091019291505056fea2646970667358221220731df8f6698cfd9bb4441f3fcb9649c7087476d34d5fc0c7206213a5072e4db064736f6c63430008180033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102485760003560e01c80638da5cb5b1161013b578063d3d0c9f7116100b8578063f2117d451161007c578063f2117d45146105dc578063f2bcd022146105ef578063f2fde38b14610602578063f851a44014610615578063ffa1ad741461062857600080fd5b8063d3d0c9f71461057d578063dcb0f2d314610590578063de7bfcdf146105a3578063e91b79bc146105b6578063eb12d61e146105c957600080fd5b8063b2217281116100ff578063b2217281146104eb578063b5b3b6d214610524578063b5fd282a14610537578063c0d7865514610557578063ca38f4181461056a57600080fd5b80638da5cb5b1461045957806395d5cca81461046a5780639d5dbd2c1461047d5780639d90d0a114610490578063a3f4df7e146104b357600080fd5b806356688700116101c957806371f174c11161018d57806371f174c1146103ad578063736c0d5b146103dd57806378ce6969146104105780637d46872e14610423578063816c1c621461043657600080fd5b8063566887001461034b5780635dbdcdad1461035e5780636aa1354414610371578063704b6c0214610392578063715018a6146103a557600080fd5b806325bc62371161021057806325bc6237146102cb578063278c13fe146102de5780632839c21a14610312578063338274381461032557806344da82711461033857600080fd5b8063050881441461024d5780630556df0f1461027d5780630e316ab71461029257806321b8092e146102a557806322905249146102b8575b600080fd5b600554610260906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61029061028b366004612da9565b61064e565b005b6102906102a0366004612da9565b6106f9565b6102906102b3366004612da9565b610787565b6102906102c6366004612e67565b6107d3565b6102906102d9366004612f0e565b610a9b565b6102606102ec366004612f88565b600b6020908152600092835260408084209091529082529020546001600160a01b031681565b610290610320366004612da9565b610d14565b600454610260906001600160a01b031681565b610290610346366004612fb2565b610d9d565b610290610359366004612f88565b610ec3565b600854610260906001600160a01b031681565b61038461037f366004612f88565b611023565b604051908152602001610274565b6102906103a0366004612da9565b611201565b61029061127f565b6103c06103bb366004613037565b6112f3565b604080519283526001600160a01b03909116602083015201610274565b6104006103eb366004612da9565b60096020526000908152604090205460ff1681565b6040519015158152602001610274565b61038461041e366004612f0e565b6113ab565b610290610431366004612fb2565b6115fd565b6104006104443660046130e8565b600d6020526000908152604090205460ff1681565b6000546001600160a01b0316610260565b610290610478366004613101565b6116a0565b61029061048b366004612f88565b6117a4565b61040061049e366004612da9565b600c6020526000908152604090205460ff1681565b6104de6040518060400160405280600c81526020016b232aa7222fa6a0a720a3a2a960a11b81525081565b604051610274919061314f565b6103846104f9366004613101565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205490565b600754610260906001600160a01b031681565b610384610545366004612da9565b60036020526000908152604090205481565b610290610565366004612da9565b6118b1565b610384610578366004612e67565b611953565b6103c061058b366004613182565b611bf2565b61029061059e366004612f88565b611ca0565b6103846105b1366004613204565b611d76565b6103846105c4366004612f88565b611f6d565b6102906105d7366004612da9565b6121c2565b6102906105ea366004612da9565b612253565b600654610260906001600160a01b031681565b610290610610366004612da9565b6122d9565b600154610260906001600160a01b031681565b6104de604051806040016040528060078152602001660c0c0c0b8c0c0d60ca1b81525081565b6000546001600160a01b031633146106815760405162461bcd60e51b81526004016106789061324a565b60405180910390fd5b6001600160a01b0381166106d75760405162461bcd60e51b815260206004820152601a60248201527f464d3a2042616420736574746c656d656e74206d616e616765720000000000006044820152606401610678565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146107235760405162461bcd60e51b81526004016106789061324a565b6001600160a01b0381166107665760405162461bcd60e51b815260206004820152600a6024820152692130b21039b4b3b732b960b11b6044820152606401610678565b6001600160a01b03166000908152600960205260409020805460ff19169055565b6000546001600160a01b031633146107b15760405162461bcd60e51b81526004016106789061324a565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b0316331461082d5760405162461bcd60e51b815260206004820152601b60248201527f464d3a204f6e6c7920536574746c656d656e74204d616e6167657200000000006044820152606401610678565b6001600160a01b0385166108535760405162461bcd60e51b81526004016106789061327f565b6001600160a01b0386166108795760405162461bcd60e51b81526004016106789061327f565b6001600160a01b03891661089f5760405162461bcd60e51b8152600401610678906132a6565b60008390036108c05760405162461bcd60e51b8152600401610678906132cd565b876000036108e05760405162461bcd60e51b8152600401610678906132f3565b866000036109005760405162461bcd60e51b8152600401610678906132f3565b81421061091f5760405162461bcd60e51b81526004016106789061331b565b61092c62093a8042613368565b821061094a5760405162461bcd60e51b81526004016106789061337b565b60007facc13f04d4db76f939fe9b2c602b8fc3f728cb4afcf8bd24e500ca1e550781778a8a8a8a8a8a8a8a60405160200161098d999897969594939291906133a7565b60405160208183030381529060405280519060200120905060006109b182846123c3565b6001600160a01b03811660009081526009602052604090205490915060ff166109ec5760405162461bcd60e51b8152600401610678906133f6565b6000858152600d602052604090205460ff1615610a1b5760405162461bcd60e51b815260040161067890613422565b6000858152600d602052604090819020805460ff1916600117905560085490516001600160a01b03808a16928e8216929116907f7920f0476a5a3d6e9b3aed4246e558312df4dc04642806553a405af5d684d3e290610a86908f908b90918252602082015260400190565b60405180910390a45050505050505050505050565b6008546001600160a01b03163314610af55760405162461bcd60e51b815260206004820152601b60248201527f464d3a204f6e6c7920536574746c656d656e74204d616e6167657200000000006044820152606401610678565b6001600160a01b038616610b1b5760405162461bcd60e51b81526004016106789061327f565b6001600160a01b038516610b415760405162461bcd60e51b8152600401610678906132a6565b6000839003610b625760405162461bcd60e51b8152600401610678906132cd565b83600003610b825760405162461bcd60e51b8152600401610678906132f3565b814210610ba15760405162461bcd60e51b81526004016106789061331b565b610bae62093a8042613368565b8210610bcc5760405162461bcd60e51b81526004016106789061337b565b60007f65ec88abe38b75940cc431ebd9d6fb3fe7530518ece929d9251993609d095bfc8787878787604051602001610c0996959493929190613451565b6040516020818303038152906040528051906020012090506000610c2d82846123c3565b6001600160a01b03811660009081526009602052604090205490915060ff16610c685760405162461bcd60e51b8152600401610678906133f6565b6000858152600d602052604090205460ff1615610c975760405162461bcd60e51b815260040161067890613422565b6000858152600d602052604090819020805460ff1916600117905560085490516001600160a01b03808b16928a8216929116907f7920f0476a5a3d6e9b3aed4246e558312df4dc04642806553a405af5d684d3e290610d02908b908b90918252602082015260400190565b60405180910390a45050505050505050565b6001546001600160a01b0316331480610d3757506000546001600160a01b031633145b610d535760405162461bcd60e51b815260040161067890613485565b6001600160a01b038116610d795760405162461bcd60e51b8152600401610678906134ac565b6001600160a01b03166000908152600c60205260409020805460ff19166001179055565b6001546001600160a01b0316331480610dc057506000546001600160a01b031633145b610ddc5760405162461bcd60e51b815260040161067890613485565b6001600160a01b038316610e025760405162461bcd60e51b8152600401610678906134ac565b6001600160a01b038116610e4a5760405162461bcd60e51b815260206004820152600f60248201526e2130b2103a30b933b2ba2a37b5b2b760891b6044820152606401610678565b81600003610e885760405162461bcd60e51b815260206004820152600b60248201526a1098590818da185a5b925960aa1b6044820152606401610678565b6001600160a01b039283166000908152600b602090815260408083209483529390529190912080546001600160a01b03191691909216179055565b80600003610ee35760405162461bcd60e51b8152600401610678906134cf565b6001600160a01b038216610f095760405162461bcd60e51b815260040161067890613506565b6001600160a01b0382166000908152600c602052604090205460ff161515600114610f825760405162461bcd60e51b8152602060048201526024808201527f464d3a204f6e6c7920666f756e647279206173736574732063616e20626520616044820152631919195960e21b6064820152608401610678565b6001600160a01b0382166000908152600a6020908152604080832033845290915281208054839290610fb5908490613368565b90915550610fc79050823330846123d0565b9050610fd282612542565b604080513381526001600160a01b03851660208201529081018290529091507fef3f81f7842dc4087d754ab30e98bb596b7345a806ff6db3c82f0c7d77b74960906060015b60405180910390a15050565b6004546000906001600160a01b031633148061104957506005546001600160a01b031633145b6110955760405162461bcd60e51b815260206004820152601b60248201527f464d3a204f6e6c79206c6971756964697479206d616e616765727300000000006044820152606401610678565b816000036110b55760405162461bcd60e51b8152600401610678906134cf565b6001600160a01b0383166110db5760405162461bcd60e51b815260040161067890613506565b6040516370a0823160e01b815230600482015282906001600160a01b038516906370a0823190602401602060405180830381865afa158015611121573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611145919061352d565b10156111935760405162461bcd60e51b815260206004820152601860248201527f464d3a20496e73756666696369656e742062616c616e636500000000000000006044820152606401610678565b6006546111ab9084906001600160a01b031684612642565b600654604080516001600160a01b0386811682526020820186905290921682820152517f1f25b5e6960a43be27d599c4643d7e7d7f7c5cc8d0a77ef795583b6abe4ada7d9181900360600190a150805b92915050565b6000546001600160a01b0316331461122b5760405162461bcd60e51b81526004016106789061324a565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f8fe72c3e0020beb3234e76ae6676fa576fbfcae600af1c4fea44784cf0db329c9060200160405180910390a150565b6000546001600160a01b031633146112a95760405162461bcd60e51b81526004016106789061324a565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60008060007facc13f04d4db76f939fe9b2c602b8fc3f728cb4afcf8bd24e500ca1e550781778d8d8d8d8d8d8d8d604051602001611339999897969594939291906133a7565b6040516020818303038152906040528051906020012090506000806113948388888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506126ec92505050565b90955093505050509a509a98505050505050505050565b6007546000906001600160a01b031633146113d85760405162461bcd60e51b815260040161067890613546565b6001600160a01b0387166113fe5760405162461bcd60e51b81526004016106789061327f565b6001600160a01b0386166114245760405162461bcd60e51b8152600401610678906132a6565b60008490036114455760405162461bcd60e51b8152600401610678906132cd565b846000036114655760405162461bcd60e51b8152600401610678906132f3565b8242106114845760405162461bcd60e51b81526004016106789061331b565b61149162093a8042613368565b83106114af5760405162461bcd60e51b81526004016106789061337b565b60007f65ec88abe38b75940cc431ebd9d6fb3fe7530518ece929d9251993609d095bfc88888888886040516020016114ec96959493929190613451565b604051602081830303815290604052805190602001209050600061151082856123c3565b6001600160a01b03811660009081526009602052604090205490915060ff1661154b5760405162461bcd60e51b8152600401610678906133f6565b6000868152600d602052604090205460ff161561157a5760405162461bcd60e51b815260040161067890613422565b6000868152600d60205260409020805460ff1916600117905561159e898989612642565b604080516001600160a01b0383811682528a811660208301528b16818301526060810189905290517f20866f1bbd1aa6fdb9e631ab723d2060dcc7e4719ec6a43ecd7231557dcec8d99181900360800190a15094979650505050505050565b6007546001600160a01b031633146116275760405162461bcd60e51b815260040161067890613546565b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb906044016020604051808303816000875af1158015611676573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169a919061357d565b50505050565b6000546001600160a01b031633146116ca5760405162461bcd60e51b81526004016106789061324a565b6001600160a01b0382166117205760405162461bcd60e51b815260206004820152601960248201527f464d3a20426164206c6971756964697479206d616e61676572000000000000006044820152606401610678565b6001600160a01b0381166117765760405162461bcd60e51b815260206004820152601d60248201527f464d3a20426164206c6971756964697479206d616e6167657220626f740000006044820152606401610678565b600480546001600160a01b039384166001600160a01b03199182161790915560058054929093169116179055565b6004546001600160a01b03163314806117c757506005546001600160a01b031633145b6118135760405162461bcd60e51b815260206004820152601b60248201527f464d3a204f6e6c79206c6971756964697479206d616e616765727300000000006044820152606401610678565b806000036118335760405162461bcd60e51b8152600401610678906134cf565b6001600160a01b0382166118595760405162461bcd60e51b815260040161067890613506565b611865823330846123d0565b5061186f82612542565b604080516001600160a01b0385168152602081018390529192507fe2a997b821bbe7231610ff5bec588c01d5203839598bc10d13f73e1f7b65c5229101611017565b6000546001600160a01b031633146118db5760405162461bcd60e51b81526004016106789061324a565b6001600160a01b0381166119315760405162461bcd60e51b815260206004820152601860248201527f464d3a206669626572526f7574657220726571756972656400000000000000006044820152606401610678565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6007546000906001600160a01b031633146119805760405162461bcd60e51b815260040161067890613546565b6001600160a01b0386166119a65760405162461bcd60e51b81526004016106789061327f565b6001600160a01b0387166119cc5760405162461bcd60e51b81526004016106789061327f565b6001600160a01b038a166119f25760405162461bcd60e51b8152600401610678906132a6565b6000849003611a135760405162461bcd60e51b8152600401610678906132cd565b88600003611a335760405162461bcd60e51b8152600401610678906132f3565b87600003611a535760405162461bcd60e51b8152600401610678906132f3565b824210611a725760405162461bcd60e51b81526004016106789061331b565b611a7f62093a8042613368565b8310611a9d5760405162461bcd60e51b81526004016106789061337b565b60007facc13f04d4db76f939fe9b2c602b8fc3f728cb4afcf8bd24e500ca1e550781778b8b8b8b8b8b8b8b604051602001611ae0999897969594939291906133a7565b6040516020818303038152906040528051906020012090506000611b0482856123c3565b6001600160a01b03811660009081526009602052604090205490915060ff16611b3f5760405162461bcd60e51b8152600401610678906133f6565b6000868152600d602052604090205460ff1615611b6e5760405162461bcd60e51b815260040161067890613422565b6000868152600d60205260409020805460ff19166001179055611b9289338d612642565b604080516001600160a01b0383811682523360208301528b1681830152606081018d905290517f20866f1bbd1aa6fdb9e631ab723d2060dcc7e4719ec6a43ecd7231557dcec8d99181900360800190a150989a9950505050505050505050565b60008060007f65ec88abe38b75940cc431ebd9d6fb3fe7530518ece929d9251993609d095bfc8a8a8a8a8a604051602001611c3296959493929190613451565b604051602081830303815290604052805190602001209050600080611c8d8388888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506126ec92505050565b909d909c509a5050505050505050505050565b6001546001600160a01b0316331480611cc357506000546001600160a01b031633145b611cdf5760405162461bcd60e51b815260040161067890613485565b6001600160a01b038216611d055760405162461bcd60e51b8152600401610678906134ac565b80600003611d435760405162461bcd60e51b815260206004820152600b60248201526a1098590818da185a5b925960aa1b6044820152606401610678565b6001600160a01b039091166000908152600b602090815260408083209383529290522080546001600160a01b0319169055565b6007546000906001600160a01b03163314611da35760405162461bcd60e51b815260040161067890613546565b6001600160a01b038086166000818152600b6020908152604080832088845290915290205490911690611de85760405162461bcd60e51b81526004016106789061327f565b83600003611e385760405162461bcd60e51b815260206004820152601d60248201527f464d3a207461726765744e6574776f726b2069732072657175726965640000006044820152606401610678565b6001600160a01b038116611e855760405162461bcd60e51b815260206004820152601460248201527323269d103130b2103a30b933b2ba103a37b5b2b760611b6044820152606401610678565b6001600160a01b038316611edb5760405162461bcd60e51b815260206004820152601d60248201527f464d3a20746172676574416464726573732069732072657175697265640000006044820152606401610678565b84600003611efb5760405162461bcd60e51b8152600401610678906132f3565b611f0486612542565b60408051338152602081018790526001600160a01b03848116828401528681166060830152608082018490529151929750908816917f0752ea9a96cdaf45ba08b0e73e0bbecc3d4a19e96da74d1ac80edea784d4c62c9181900360a00190a25092949350505050565b600081600003611f8f5760405162461bcd60e51b8152600401610678906134cf565b6001600160a01b038316611fb55760405162461bcd60e51b815260040161067890613506565b6001600160a01b0383166000908152600c602052604090205460ff1615156001146120315760405162461bcd60e51b815260206004820152602660248201527f464d3a204f6e6c7920666f756e647279206173736574732063616e2062652072604482015265195b5bdd995960d21b6064820152608401610678565b6001600160a01b0383166000908152600a60209081526040808320338452909152902054828110156120a55760405162461bcd60e51b815260206004820152601860248201527f464d3a204e6f7420656e6f756768206c697175696469747900000000000000006044820152606401610678565b6040516370a0823160e01b81523060048201526000906001600160a01b038616906370a0823190602401602060405180830381865afa1580156120ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612110919061352d565b905060008482116121215781612123565b845b905080156121b9576001600160a01b0386166000908152600a602090815260408083203384529091528120805483929061215e90849061359f565b9091555061216f9050863383612642565b604080513381526001600160a01b03881660208201529081018690527f5204091f3aba3d16dbb7fcc090386ce24245ac12f57ae5bf9785e0ab9a79be739060600160405180910390a15b95945050505050565b6000546001600160a01b031633146121ec5760405162461bcd60e51b81526004016106789061324a565b6001600160a01b03811661222f5760405162461bcd60e51b815260206004820152600a6024820152692130b21039b4b3b732b960b11b6044820152606401610678565b6001600160a01b03166000908152600960205260409020805460ff19166001179055565b6001546001600160a01b031633148061227657506000546001600160a01b031633145b6122925760405162461bcd60e51b815260040161067890613485565b6001600160a01b0381166122b85760405162461bcd60e51b8152600401610678906134ac565b6001600160a01b03166000908152600c60205260409020805460ff19169055565b6000546001600160a01b031633146123035760405162461bcd60e51b81526004016106789061324a565b6001600160a01b0381166123685760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610678565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806121b984846126ec565b6040516370a0823160e01b81526001600160a01b03838116600483015260009182918716906370a0823190602401602060405180830381865afa15801561241b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061243f919061352d565b90506124566001600160a01b03871686868661270d565b6040516370a0823160e01b81526001600160a01b038581166004830152600091908816906370a0823190602401602060405180830381865afa1580156124a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124c4919061352d565b90506124d0828261359f565b9250838311156125385760405162461bcd60e51b815260206004820152602d60248201527f53413a2061637475616c20616d6f756e74206c6172676572207468616e20747260448201526c185b9cd9995c88185b5bdd5b9d609a1b6064820152608401610678565b5050949350505050565b600060028054036125955760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610678565b600280556001600160a01b0382166000818152600360205260408082205490516370a0823160e01b81523060048201529092906370a0823190602401602060405180830381865afa1580156125ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612612919061352d565b905061261e828261359f565b6001600160a01b039094166000908152600360205260409020555050600160025590565b60028054036126935760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610678565b600280556001600160a01b0383166000908152600360205260409020546126bb90829061359f565b6001600160a01b0384166000818152600360205260409020919091556126e2908383612778565b5050600160025550565b6000806126f8846127ad565b915061270482846127fb565b90509250929050565b6040516001600160a01b038085166024830152831660448201526064810182905261169a9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526128af565b6040516001600160a01b0383166024820152604481018290526127a890849063a9059cbb60e01b90606401612741565b505050565b60006111fb6127ba612981565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060008084516041036128245750505060208201516040830151606084015160001a612899565b84516040036128515750505060408201516020830151906001600160ff1b0381169060ff1c601b01612899565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610678565b6128a586828585612a73565b9695505050505050565b6000612904826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612c139092919063ffffffff16565b8051909150156127a85780806020019051810190612922919061357d565b6127a85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610678565b60007f000000000000000000000000000000000000000000000000000000000000000146036129cf57507f8b193acd498125e5ae648a0672ec3d23a3145099387ae492b26cba4af60cb16b90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fb58436161aa98d7442ffff3af203d6031ad86e54ee571266152aa0e83a524726828401527fa03408cf072d92154dd19fd8cfe404b94d1b795118dd310c162bfba3a3b7aac160608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612af05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610678565b8360ff16601b1480612b0557508360ff16601c145b612b5c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610678565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612bb0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166121b95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610678565b6060612c228484600085612c2c565b90505b9392505050565b606082471015612c8d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610678565b843b612cdb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610678565b600080866001600160a01b03168587604051612cf791906135b2565b60006040518083038185875af1925050503d8060008114612d34576040519150601f19603f3d011682016040523d82523d6000602084013e612d39565b606091505b5091509150612d49828286612d54565b979650505050505050565b60608315612d63575081612c25565b825115612d735782518084602001fd5b8160405162461bcd60e51b8152600401610678919061314f565b80356001600160a01b0381168114612da457600080fd5b919050565b600060208284031215612dbb57600080fd5b612c2582612d8d565b634e487b7160e01b600052604160045260246000fd5b600082601f830112612deb57600080fd5b813567ffffffffffffffff80821115612e0657612e06612dc4565b604051601f8301601f19908116603f01168101908282118183101715612e2e57612e2e612dc4565b81604052838152866020858801011115612e4757600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060008060006101208a8c031215612e8657600080fd5b612e8f8a612d8d565b985060208a0135975060408a01359650612eab60608b01612d8d565b9550612eb960808b01612d8d565b9450612ec760a08b01612d8d565b935060c08a0135925060e08a013591506101008a013567ffffffffffffffff811115612ef257600080fd5b612efe8c828d01612dda565b9150509295985092959850929598565b60008060008060008060c08789031215612f2757600080fd5b612f3087612d8d565b9550612f3e60208801612d8d565b945060408701359350606087013592506080870135915060a087013567ffffffffffffffff811115612f6f57600080fd5b612f7b89828a01612dda565b9150509295509295509295565b60008060408385031215612f9b57600080fd5b612fa483612d8d565b946020939093013593505050565b600080600060608486031215612fc757600080fd5b612fd084612d8d565b925060208401359150612fe560408501612d8d565b90509250925092565b60008083601f84011261300057600080fd5b50813567ffffffffffffffff81111561301857600080fd5b60208301915083602082850101111561303057600080fd5b9250929050565b6000806000806000806000806000806101208b8d03121561305757600080fd5b6130608b612d8d565b995060208b0135985060408b0135975061307c60608c01612d8d565b965061308a60808c01612d8d565b955061309860a08c01612d8d565b945060c08b0135935060e08b013592506101008b013567ffffffffffffffff8111156130c357600080fd5b6130cf8d828e01612fee565b915080935050809150509295989b9194979a5092959850565b6000602082840312156130fa57600080fd5b5035919050565b6000806040838503121561311457600080fd5b61311d83612d8d565b915061270460208401612d8d565b60005b8381101561314657818101518382015260200161312e565b50506000910152565b602081526000825180602084015261316e81604085016020870161312b565b601f01601f19169190910160400192915050565b600080600080600080600060c0888a03121561319d57600080fd5b6131a688612d8d565b96506131b460208901612d8d565b955060408801359450606088013593506080880135925060a088013567ffffffffffffffff8111156131e557600080fd5b6131f18a828b01612fee565b989b979a50959850939692959293505050565b6000806000806080858703121561321a57600080fd5b61322385612d8d565b9350602085013592506040850135915061323f60608601612d8d565b905092959194509250565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600d908201526c23269d103130b2103a37b5b2b760991b604082015260600190565b6020808252600d908201526c464d3a2062616420706179656560981b604082015260600190565b6020808252600c908201526b11934e88189859081cd85b1d60a21b604082015260600190565b6020808252600e908201526d11934e8818985908185b5bdd5b9d60921b604082015260600190565b60208082526017908201527f464d3a207369676e61747572652074696d6564206f7574000000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156111fb576111fb613352565b60208082526012908201527123269d1032bc3834b93c903a37b7903330b960711b604082015260600190565b9889526001600160a01b0397881660208a0152604089019690965260608801949094529185166080870152841660a086015290921660c084015260e08301919091526101008201526101200190565b60208082526012908201527123269d1024b73b30b634b21039b4b3b732b960711b604082015260600190565b60208082526015908201527411934e881cd85b1d08185b1c9958591e481d5cd959605a1b604082015260600190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b6020808252600d908201526c2ba09d103737ba1030b236b4b760991b604082015260600190565b6020808252600990820152682130b2103a37b5b2b760b91b604082015260600190565b6020808252601b908201527f464d3a20416d6f756e74206d75737420626520706f7369746976650000000000604082015260600190565b6020808252600d908201526c23269d102130b2103a37b5b2b760991b604082015260600190565b60006020828403121561353f57600080fd5b5051919050565b6020808252601b908201527f464d3a204f6e6c79206669626572526f75746572206d6574686f640000000000604082015260600190565b60006020828403121561358f57600080fd5b81518015158114612c2557600080fd5b818103818111156111fb576111fb613352565b600082516135c481846020870161312b565b919091019291505056fea2646970667358221220731df8f6698cfd9bb4441f3fcb9649c7087476d34d5fc0c7206213a5072e4db064736f6c63430008180033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.999589 | 7,324.4943 | $7,321.48 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.