Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 20585434 | 168 days ago | IN | 0 ETH | 0.00006529 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
MainnetDolaFlashMinter
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 10000 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: None pragma solidity ^0.8.0; import "./DolaFlashMinter.sol"; contract MainnetDolaFlashMinter is DolaFlashMinter { constructor() DolaFlashMinter( // Mainnet Dola 0x865377367054516e17014CcdED1e7d814EDC9ce4, // Mainnet Inverse Treasury 0x926dF14a23BE491164dCF93f4c468A50ef659D5B ) // solhint-disable-next-line no-empty-blocks { } }
//SPDX-License-Identifier: None pragma solidity ^0.8.0; import "./interfaces/IERC3156FlashBorrower.sol"; import "./interfaces/IERC3156FlashLender.sol"; import "./utils/Ownable.sol"; import "./utils/Address.sol"; import "./ERC20/IERC20.sol"; import "./ERC20/SafeERC20.sol"; /** * @title Dola Flash Minter * @notice Allow users to mint an arbitrary amount of DOLA without collateral * as long as this amount is repaid within a single transaction. * @dev This contract is abstract, any concrete implementation must have the DOLA * token address hardcoded in the contract to facilitate code auditing. */ abstract contract DolaFlashMinter is Ownable, IERC3156FlashLender { using SafeERC20 for IERC20; using Address for address; using Address for address payable; event FlashLoan(address receiver, address token, uint256 value); event TreasuryUpdated(address oldTreasury, address newTreasury); event MaxFlashLimitUpdated(uint256 oldLimit, uint256 newLimit); IERC20 public immutable dola; uint256 public constant fee = 0; address public treasury; uint256 public flashMinted; uint256 public maxFlashLimit; bytes32 public constant CALLBACK_SUCCESS = keccak256("ERC3156FlashBorrower.onFlashLoan"); constructor(address _dola, address _treasury) { require(_dola.isContract(), "FLASH_MINTER:INVALID_DOLA"); require(_treasury != address(0), "FLASH_MINTER:INVALID_TREASURY"); dola = IERC20(_dola); treasury = _treasury; } function flashLoan( IERC3156FlashBorrower receiver, address token, uint256 value, bytes calldata data ) external override returns (bool) { require(token == address(dola), "FLASH_MINTER:NOT_DOLA"); require(value <= maxFlashLimit, "FLASH_MINTER:INDIVIDUAL_LIMIT_BREACHED"); flashMinted = flashMinted + value; require(flashMinted <= maxFlashLimit, "total loan limit exceeded"); // Step 1: Mint Dola to receiver dola.mint(address(receiver), value); emit FlashLoan(address(receiver), token, value); // Step 2: Make flashloan callback require( receiver.onFlashLoan(msg.sender, token, value, fee, data) == CALLBACK_SUCCESS, "FLASH_MINTER:CALLBACK_FAILURE" ); // Step 3: Retrieve minted Dola from receiver dola.safeTransferFrom(address(receiver), address(this), value); // Step 4: Burn minted Dola (and leave accrued fees in contract) dola.burn(value); flashMinted = flashMinted - value; return true; } // Collect fees and retrieve any tokens sent to this contract by mistake function collect(address _token) external { if (_token == address(0)) { payable(treasury).sendValue(address(this).balance); } else { uint256 balance = IERC20(_token).balanceOf(address(this)); IERC20(_token).safeTransfer(treasury, balance); } } function setTreasury(address _newTreasury) external onlyOwner { require(_newTreasury != address(0), "FLASH_MINTER:INVALID_TREASURY"); emit TreasuryUpdated(treasury, _newTreasury); treasury = _newTreasury; } function setMaxFlashLimit(uint256 _newLimit) external onlyOwner { emit MaxFlashLimitUpdated(maxFlashLimit, _newLimit); maxFlashLimit = _newLimit; } function maxFlashLoan(address _token) external view override returns (uint256) { return _token == address(dola) ? maxFlashLimit - flashMinted : 0; } function flashFee(address _token, uint256) public view override returns (uint256) { require(_token == address(dola), "FLASH_MINTER:NOT_DOLA"); return fee; } // solhint-disable-next-line no-empty-blocks receive() external payable {} }
pragma solidity ^0.8.0; interface IERC3156FlashBorrower { /** * @dev Receive a flash loan. * @param initiator The initiator of the loan. * @param token The loan currency. * @param amount The amount of tokens lent. * @param fee The additional amount of tokens to repay. * @param data Arbitrary data structure, intended to contain user-defined parameters. * @return The keccak256 hash of "ERC3156FlashBorrower.onFlashLoan" */ function onFlashLoan( address initiator, address token, uint256 amount, uint256 fee, bytes calldata data ) external returns (bytes32); }
pragma solidity ^0.8.0; import "./IERC3156FlashBorrower.sol"; interface IERC3156FlashLender { /** * @dev The amount of currency available to be lent. * @param token The loan currency. * @return The amount of `token` that can be borrowed. */ function maxFlashLoan( address token ) external view returns (uint256); /** * @dev The fee to be charged for a given loan. * @param token The loan currency. * @param value The amount of tokens lent. * @return The amount of `token` to be charged for the loan, on top of the returned principal. */ function flashFee( address token, uint256 value ) external view returns (uint256); /** * @dev Initiate a flash loan. * @param receiver The receiver of the tokens in the loan, and the receiver of the callback. * @param token The loan currency. * @param value The amount of tokens lent. * @param data Arbitrary data structure, intended to contain user-defined parameters. */ function flashLoan( IERC3156FlashBorrower receiver, address token, uint256 value, bytes calldata data ) external returns (bool); }
pragma solidity ^0.8.0; import "./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; } }
pragma solidity ^0.8.0; 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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); 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); } } } }
pragma solidity ^0.8.0; /** * @title Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function approve(address spender, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); function totalSupply() external view returns (uint256); function increaseAllowance(address spender, uint256 addedValue) external returns (bool); function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool); function mint(address to, uint256 amount) external; function burn(uint256 amount) external; function deposit() external payable; }
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 { uint256 newAllowance = token.allowance(address(this), spender) - 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"); } } }
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; } }
{ "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "solmate/=lib/solmate/src/" ], "optimizer": { "enabled": true, "runs": 10000 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "shanghai", "viaIR": false, "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":"receiver","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"FlashLoan","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldLimit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"MaxFlashLimitUpdated","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":"oldTreasury","type":"address"},{"indexed":false,"internalType":"address","name":"newTreasury","type":"address"}],"name":"TreasuryUpdated","type":"event"},{"inputs":[],"name":"CALLBACK_SUCCESS","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"collect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dola","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"flashFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC3156FlashBorrower","name":"receiver","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flashLoan","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flashMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFlashLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"maxFlashLoan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setMaxFlashLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTreasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405234801561000f575f80fd5b505f80546001600160a01b03191633908117825560405173865377367054516e17014ccded1e7d814edc9ce49273926df14a23be491164dcf93f4c468a50ef659d5b92918291907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061008e6001600160a01b03831661015d565b6100df5760405162461bcd60e51b815260206004820152601960248201527f464c4153485f4d494e5445523a494e56414c49445f444f4c410000000000000060448201526064015b60405180910390fd5b6001600160a01b0381166101355760405162461bcd60e51b815260206004820152601d60248201527f464c4153485f4d494e5445523a494e56414c49445f545245415355525900000060448201526064016100d6565b6001600160a01b03918216608052600180546001600160a01b03191691909216179055610198565b5f813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061019057508115155b949350505050565b60805161158d6101da5f395f81816102c1015281816104cd0152818161068e01528181610863015281816108ba015281816109460152610a89015261158d5ff3fe6080604052600436106100e7575f3560e01c80638b28d32f11610087578063ddca3f4311610057578063ddca3f431461029d578063ea0593e4146102b0578063f0f44260146102e3578063f2fde38b14610302575f80fd5b80638b28d32f1461022b5780638da5cb5b14610240578063b4297ca514610269578063d9d98ce41461027e575f80fd5b8063613255ab116100c2578063613255ab1461016657806361d027b314610193578063715018a6146101e45780638237e538146101f8575f80fd5b806306ec16f8146100f25780634cd8a832146101135780635cffe9de14610132575f80fd5b366100ee57005b5f80fd5b3480156100fd575f80fd5b5061011161010c3660046112c3565b610321565b005b34801561011e575f80fd5b5061011161012d3660046112e5565b61041e565b34801561013d575f80fd5b5061015161014c3660046112fc565b6104ca565b60405190151581526020015b60405180910390f35b348015610171575f80fd5b506101856101803660046112c3565b610943565b60405190815260200161015d565b34801561019e575f80fd5b506001546101bf9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161015d565b3480156101ef575f80fd5b506101116109b3565b348015610203575f80fd5b506101857f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd981565b348015610236575f80fd5b5061018560025481565b34801561024b575f80fd5b505f5473ffffffffffffffffffffffffffffffffffffffff166101bf565b348015610274575f80fd5b5061018560035481565b348015610289575f80fd5b50610185610298366004611393565b610a86565b3480156102a8575f80fd5b506101855f81565b3480156102bb575f80fd5b506101bf7f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ee575f80fd5b506101116102fd3660046112c3565b610b2a565b34801561030d575f80fd5b5061011161031c3660046112c3565b610c8e565b73ffffffffffffffffffffffffffffffffffffffff81166103625760015461035f9073ffffffffffffffffffffffffffffffffffffffff1647610e08565b50565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f9073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa1580156103cc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103f091906113bd565b60015490915061041a9073ffffffffffffffffffffffffffffffffffffffff848116911683610f2f565b5050565b5f5473ffffffffffffffffffffffffffffffffffffffff1633146104895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60035460408051918252602082018390527f031eef51f73c5a09d94a0763328b9d24ec1aac6bd9c1d77e00f10f2c9e1d99d6910160405180910390a1600355565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146105665760405162461bcd60e51b815260206004820152601560248201527f464c4153485f4d494e5445523a4e4f545f444f4c4100000000000000000000006044820152606401610480565b6003548411156105de5760405162461bcd60e51b815260206004820152602660248201527f464c4153485f4d494e5445523a494e444956494455414c5f4c494d49545f425260448201527f45414348454400000000000000000000000000000000000000000000000000006064820152608401610480565b836002546105ec9190611401565b600281905560035410156106425760405162461bcd60e51b815260206004820152601960248201527f746f74616c206c6f616e206c696d6974206578636565646564000000000000006044820152606401610480565b6040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018690527f000000000000000000000000000000000000000000000000000000000000000016906340c10f19906044015f604051808303815f87803b1580156106cf575f80fd5b505af11580156106e1573d5f803e3d5ffd5b50506040805173ffffffffffffffffffffffffffffffffffffffff808b168252891660208201529081018790527fc76f1b4fe4396ac07a9fa55a415d4ca430e72651d37d3401f3bed7cb13fc4f129250606001905060405180910390a16040517f23e30c8b0000000000000000000000000000000000000000000000000000000081527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd99073ffffffffffffffffffffffffffffffffffffffff8816906323e30c8b906107bc9033908a908a905f908b908b90600401611414565b6020604051808303815f875af11580156107d8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107fc91906113bd565b146108495760405162461bcd60e51b815260206004820152601d60248201527f464c4153485f4d494e5445523a43414c4c4241434b5f4641494c5552450000006044820152606401610480565b61088b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016873087611003565b6040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018590527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906342966c68906024015f604051808303815f87803b158015610910575f80fd5b505af1158015610922573d5f803e3d5ffd5b50505050836002546109349190611498565b60025550600195945050505050565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461099d575f6109ad565b6002546003546109ad9190611498565b92915050565b5f5473ffffffffffffffffffffffffffffffffffffffff163314610a195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610480565b5f805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610b225760405162461bcd60e51b815260206004820152601560248201527f464c4153485f4d494e5445523a4e4f545f444f4c4100000000000000000000006044820152606401610480565b505f92915050565b5f5473ffffffffffffffffffffffffffffffffffffffff163314610b905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610480565b73ffffffffffffffffffffffffffffffffffffffff8116610bf35760405162461bcd60e51b815260206004820152601d60248201527f464c4153485f4d494e5445523a494e56414c49445f54524541535552590000006044820152606401610480565b6001546040805173ffffffffffffffffffffffffffffffffffffffff928316815291831660208301527f4ab5be82436d353e61ca18726e984e561f5c1cc7c6d38b29d2553c790434705a910160405180910390a1600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b5f5473ffffffffffffffffffffffffffffffffffffffff163314610cf45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610480565b73ffffffffffffffffffffffffffffffffffffffff8116610d7d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610480565b5f805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b80471015610e585760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610480565b5f8273ffffffffffffffffffffffffffffffffffffffff16826040515f6040518083038185875af1925050503d805f8114610eae576040519150601f19603f3d011682016040523d82523d5f602084013e610eb3565b606091505b5050905080610f2a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610480565b505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610f2a9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611067565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526110619085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610f81565b50505050565b5f6110c8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166111589092919063ffffffff16565b805190915015610f2a57808060200190518101906110e691906114ab565b610f2a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610480565b606061116684845f8561116e565b949350505050565b60606111798561126a565b6111c55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610480565b5f808673ffffffffffffffffffffffffffffffffffffffff1685876040516111ed91906114ec565b5f6040518083038185875af1925050503d805f8114611227576040519150601f19603f3d011682016040523d82523d5f602084013e61122c565b606091505b509150915081156112405791506111669050565b8051156112505780518082602001fd5b8360405162461bcd60e51b81526004016104809190611507565b5f813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611166575050151592915050565b73ffffffffffffffffffffffffffffffffffffffff8116811461035f575f80fd5b5f602082840312156112d3575f80fd5b81356112de816112a2565b9392505050565b5f602082840312156112f5575f80fd5b5035919050565b5f805f805f60808688031215611310575f80fd5b853561131b816112a2565b9450602086013561132b816112a2565b935060408601359250606086013567ffffffffffffffff8082111561134e575f80fd5b818801915088601f830112611361575f80fd5b81358181111561136f575f80fd5b896020828501011115611380575f80fd5b9699959850939650602001949392505050565b5f80604083850312156113a4575f80fd5b82356113af816112a2565b946020939093013593505050565b5f602082840312156113cd575f80fd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b808201808211156109ad576109ad6113d4565b5f73ffffffffffffffffffffffffffffffffffffffff808916835280881660208401525085604083015284606083015260a060808301528260a0830152828460c08401375f60c0848401015260c07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501168301019050979650505050505050565b818103818111156109ad576109ad6113d4565b5f602082840312156114bb575f80fd5b815180151581146112de575f80fd5b5f5b838110156114e45781810151838201526020016114cc565b50505f910152565b5f82516114fd8184602087016114ca565b9190910192915050565b602081525f82518060208401526115258160408501602087016114ca565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220f960c3741396825758725a3346b408181f1694e9f34ef169446d74f8d7f9964564736f6c63430008140033
Deployed Bytecode
0x6080604052600436106100e7575f3560e01c80638b28d32f11610087578063ddca3f4311610057578063ddca3f431461029d578063ea0593e4146102b0578063f0f44260146102e3578063f2fde38b14610302575f80fd5b80638b28d32f1461022b5780638da5cb5b14610240578063b4297ca514610269578063d9d98ce41461027e575f80fd5b8063613255ab116100c2578063613255ab1461016657806361d027b314610193578063715018a6146101e45780638237e538146101f8575f80fd5b806306ec16f8146100f25780634cd8a832146101135780635cffe9de14610132575f80fd5b366100ee57005b5f80fd5b3480156100fd575f80fd5b5061011161010c3660046112c3565b610321565b005b34801561011e575f80fd5b5061011161012d3660046112e5565b61041e565b34801561013d575f80fd5b5061015161014c3660046112fc565b6104ca565b60405190151581526020015b60405180910390f35b348015610171575f80fd5b506101856101803660046112c3565b610943565b60405190815260200161015d565b34801561019e575f80fd5b506001546101bf9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161015d565b3480156101ef575f80fd5b506101116109b3565b348015610203575f80fd5b506101857f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd981565b348015610236575f80fd5b5061018560025481565b34801561024b575f80fd5b505f5473ffffffffffffffffffffffffffffffffffffffff166101bf565b348015610274575f80fd5b5061018560035481565b348015610289575f80fd5b50610185610298366004611393565b610a86565b3480156102a8575f80fd5b506101855f81565b3480156102bb575f80fd5b506101bf7f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce481565b3480156102ee575f80fd5b506101116102fd3660046112c3565b610b2a565b34801561030d575f80fd5b5061011161031c3660046112c3565b610c8e565b73ffffffffffffffffffffffffffffffffffffffff81166103625760015461035f9073ffffffffffffffffffffffffffffffffffffffff1647610e08565b50565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f9073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa1580156103cc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103f091906113bd565b60015490915061041a9073ffffffffffffffffffffffffffffffffffffffff848116911683610f2f565b5050565b5f5473ffffffffffffffffffffffffffffffffffffffff1633146104895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60035460408051918252602082018390527f031eef51f73c5a09d94a0763328b9d24ec1aac6bd9c1d77e00f10f2c9e1d99d6910160405180910390a1600355565b5f7f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce473ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146105665760405162461bcd60e51b815260206004820152601560248201527f464c4153485f4d494e5445523a4e4f545f444f4c4100000000000000000000006044820152606401610480565b6003548411156105de5760405162461bcd60e51b815260206004820152602660248201527f464c4153485f4d494e5445523a494e444956494455414c5f4c494d49545f425260448201527f45414348454400000000000000000000000000000000000000000000000000006064820152608401610480565b836002546105ec9190611401565b600281905560035410156106425760405162461bcd60e51b815260206004820152601960248201527f746f74616c206c6f616e206c696d6974206578636565646564000000000000006044820152606401610480565b6040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018690527f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce416906340c10f19906044015f604051808303815f87803b1580156106cf575f80fd5b505af11580156106e1573d5f803e3d5ffd5b50506040805173ffffffffffffffffffffffffffffffffffffffff808b168252891660208201529081018790527fc76f1b4fe4396ac07a9fa55a415d4ca430e72651d37d3401f3bed7cb13fc4f129250606001905060405180910390a16040517f23e30c8b0000000000000000000000000000000000000000000000000000000081527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd99073ffffffffffffffffffffffffffffffffffffffff8816906323e30c8b906107bc9033908a908a905f908b908b90600401611414565b6020604051808303815f875af11580156107d8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107fc91906113bd565b146108495760405162461bcd60e51b815260206004820152601d60248201527f464c4153485f4d494e5445523a43414c4c4241434b5f4641494c5552450000006044820152606401610480565b61088b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce416873087611003565b6040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018590527f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce473ffffffffffffffffffffffffffffffffffffffff16906342966c68906024015f604051808303815f87803b158015610910575f80fd5b505af1158015610922573d5f803e3d5ffd5b50505050836002546109349190611498565b60025550600195945050505050565b5f7f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461099d575f6109ad565b6002546003546109ad9190611498565b92915050565b5f5473ffffffffffffffffffffffffffffffffffffffff163314610a195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610480565b5f805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b5f7f000000000000000000000000865377367054516e17014ccded1e7d814edc9ce473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610b225760405162461bcd60e51b815260206004820152601560248201527f464c4153485f4d494e5445523a4e4f545f444f4c4100000000000000000000006044820152606401610480565b505f92915050565b5f5473ffffffffffffffffffffffffffffffffffffffff163314610b905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610480565b73ffffffffffffffffffffffffffffffffffffffff8116610bf35760405162461bcd60e51b815260206004820152601d60248201527f464c4153485f4d494e5445523a494e56414c49445f54524541535552590000006044820152606401610480565b6001546040805173ffffffffffffffffffffffffffffffffffffffff928316815291831660208301527f4ab5be82436d353e61ca18726e984e561f5c1cc7c6d38b29d2553c790434705a910160405180910390a1600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b5f5473ffffffffffffffffffffffffffffffffffffffff163314610cf45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610480565b73ffffffffffffffffffffffffffffffffffffffff8116610d7d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610480565b5f805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b80471015610e585760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610480565b5f8273ffffffffffffffffffffffffffffffffffffffff16826040515f6040518083038185875af1925050503d805f8114610eae576040519150601f19603f3d011682016040523d82523d5f602084013e610eb3565b606091505b5050905080610f2a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610480565b505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610f2a9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611067565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526110619085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610f81565b50505050565b5f6110c8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166111589092919063ffffffff16565b805190915015610f2a57808060200190518101906110e691906114ab565b610f2a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610480565b606061116684845f8561116e565b949350505050565b60606111798561126a565b6111c55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610480565b5f808673ffffffffffffffffffffffffffffffffffffffff1685876040516111ed91906114ec565b5f6040518083038185875af1925050503d805f8114611227576040519150601f19603f3d011682016040523d82523d5f602084013e61122c565b606091505b509150915081156112405791506111669050565b8051156112505780518082602001fd5b8360405162461bcd60e51b81526004016104809190611507565b5f813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611166575050151592915050565b73ffffffffffffffffffffffffffffffffffffffff8116811461035f575f80fd5b5f602082840312156112d3575f80fd5b81356112de816112a2565b9392505050565b5f602082840312156112f5575f80fd5b5035919050565b5f805f805f60808688031215611310575f80fd5b853561131b816112a2565b9450602086013561132b816112a2565b935060408601359250606086013567ffffffffffffffff8082111561134e575f80fd5b818801915088601f830112611361575f80fd5b81358181111561136f575f80fd5b896020828501011115611380575f80fd5b9699959850939650602001949392505050565b5f80604083850312156113a4575f80fd5b82356113af816112a2565b946020939093013593505050565b5f602082840312156113cd575f80fd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b808201808211156109ad576109ad6113d4565b5f73ffffffffffffffffffffffffffffffffffffffff808916835280881660208401525085604083015284606083015260a060808301528260a0830152828460c08401375f60c0848401015260c07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501168301019050979650505050505050565b818103818111156109ad576109ad6113d4565b5f602082840312156114bb575f80fd5b815180151581146112de575f80fd5b5f5b838110156114e45781810151838201526020016114cc565b50505f910152565b5f82516114fd8184602087016114ca565b9190910192915050565b602081525f82518060208401526115258160408501602087016114ca565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220f960c3741396825758725a3346b408181f1694e9f34ef169446d74f8d7f9964564736f6c63430008140033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.