Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,637 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Draw Down | 16845003 | 492 days ago | IN | 0 ETH | 0.00133082 | ||||
Draw Down | 16828616 | 494 days ago | IN | 0 ETH | 0.00208152 | ||||
Draw Down | 16828402 | 494 days ago | IN | 0 ETH | 0.00383321 | ||||
Draw Down | 16785647 | 500 days ago | IN | 0 ETH | 0.00472204 | ||||
Draw Down | 16744520 | 506 days ago | IN | 0 ETH | 0.00161921 | ||||
Draw Down | 16264912 | 573 days ago | IN | 0 ETH | 0.00085233 | ||||
Draw Down | 16223315 | 579 days ago | IN | 0 ETH | 0.0016056 | ||||
Draw Down | 16209567 | 581 days ago | IN | 0 ETH | 0.0016578 | ||||
Draw Down | 16162726 | 587 days ago | IN | 0 ETH | 0.00181602 | ||||
Draw Down | 16040800 | 604 days ago | IN | 0 ETH | 0.00237281 | ||||
Transfer | 16040770 | 604 days ago | IN | 0.02 ETH | 0.00036939 | ||||
Transfer | 16040763 | 604 days ago | IN | 0.02 ETH | 0.00038503 | ||||
Transfer | 16040755 | 604 days ago | IN | 0.02 ETH | 0.0003393 | ||||
Draw Down | 15981224 | 612 days ago | IN | 0 ETH | 0.00119534 | ||||
Draw Down | 15899481 | 624 days ago | IN | 0 ETH | 0.001563 | ||||
Draw Down | 15814607 | 636 days ago | IN | 0 ETH | 0.00230696 | ||||
Draw Down | 15788879 | 639 days ago | IN | 0 ETH | 0.00231344 | ||||
Draw Down | 15787978 | 639 days ago | IN | 0 ETH | 0.00136982 | ||||
Draw Down | 15778623 | 641 days ago | IN | 0 ETH | 0.00188955 | ||||
Draw Down | 15575675 | 669 days ago | IN | 0 ETH | 0.00109004 | ||||
Draw Down | 15494970 | 681 days ago | IN | 0 ETH | 0.00085736 | ||||
Draw Down | 15479190 | 684 days ago | IN | 0 ETH | 0.00078262 | ||||
Draw Down | 15468122 | 686 days ago | IN | 0 ETH | 0.00065312 | ||||
Draw Down | 15417291 | 694 days ago | IN | 0 ETH | 0.00177143 | ||||
Draw Down | 15349767 | 705 days ago | IN | 0 ETH | 0.0011477 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xEa62cE2E...bC79f1F44 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
LinearVesting
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-04-07 */ // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } 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); } /** * @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 () internal { _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; } } contract LinearVesting is ReentrancyGuard { using SafeMath for uint256; /// @notice event emitted when a vesting schedule is created event ScheduleCreated(address indexed _beneficiary); /// @notice event emitted when a successful drawn down of vesting tokens is made event DrawDown(address indexed _beneficiary, uint256 indexed _amount); /// @notice start of vesting period as a timestamp uint256 public start; /// @notice end of vesting period as a timestamp uint256 public end; /// @notice cliff duration in seconds uint256 public cliffDuration; /// @notice owner address set on construction address public owner; /// @notice amount vested for a beneficiary. Note beneficiary address can not be reused mapping(address => uint256) public vestedAmount; /// @notice cumulative total of tokens drawn down (and transferred from the deposit account) per beneficiary mapping(address => uint256) public totalDrawn; /// @notice last drawn down time (seconds) per beneficiary mapping(address => uint256) public lastDrawnAt; /// @notice ERC20 token we are vesting IERC20 public token; /** * @notice Construct a new vesting contract * @param _token ERC20 token * @param _start start timestamp * @param _end end timestamp * @param _cliffDurationInSecs cliff duration in seconds * @dev caller on constructor set as owner; this can not be changed */ constructor(IERC20 _token, uint256 _start, uint256 _end, uint256 _cliffDurationInSecs) public { require(address(_token) != address(0), "VestingContract::constructor: Invalid token"); require(_end >= _start, "VestingContract::constructor: Start must be before end"); token = _token; owner = msg.sender; start = _start; end = _end; cliffDuration = _cliffDurationInSecs; } /** * @notice Create new vesting schedules in a batch * @notice A transfer is used to bring tokens into the VestingDepositAccount so pre-approval is required * @param _beneficiaries array of beneficiaries of the vested tokens * @param _amounts array of amount of tokens (in wei) * @dev array index of address should be the same as the array index of the amount */ function createVestingSchedules( address[] calldata _beneficiaries, uint256[] calldata _amounts ) external returns (bool) { require(msg.sender == owner, "VestingContract::createVestingSchedules: Only Owner"); require(_beneficiaries.length > 0, "VestingContract::createVestingSchedules: Empty Data"); require( _beneficiaries.length == _amounts.length, "VestingContract::createVestingSchedules: Array lengths do not match" ); bool result = true; for(uint i = 0; i < _beneficiaries.length; i++) { address beneficiary = _beneficiaries[i]; uint256 amount = _amounts[i]; _createVestingSchedule(beneficiary, amount); } return result; } /** * @notice Create a new vesting schedule * @notice A transfer is used to bring tokens into the VestingDepositAccount so pre-approval is required * @param _beneficiary beneficiary of the vested tokens * @param _amount amount of tokens (in wei) */ function createVestingSchedule(address _beneficiary, uint256 _amount) external returns (bool) { require(msg.sender == owner, "VestingContract::createVestingSchedule: Only Owner"); return _createVestingSchedule(_beneficiary, _amount); } /** * @notice Transfers ownership role * @notice Changes the owner of this contract to a new address * @dev Only owner * @param _newOwner beneficiary to vest remaining tokens to */ function transferOwnership(address _newOwner) external { require(msg.sender == owner, "VestingContract::transferOwnership: Only owner"); owner = _newOwner; } /** * @notice Draws down any vested tokens due * @dev Must be called directly by the beneficiary assigned the tokens in the schedule */ function drawDown() nonReentrant external returns (bool) { return _drawDown(msg.sender); } // Accessors /** * @notice Vested token balance for a beneficiary * @dev Must be called directly by the beneficiary assigned the tokens in the schedule * @return _tokenBalance total balance proxied via the ERC20 token */ function tokenBalance() external view returns (uint256) { return token.balanceOf(address(this)); } /** * @notice Vesting schedule and associated data for a beneficiary * @dev Must be called directly by the beneficiary assigned the tokens in the schedule * @return _amount * @return _totalDrawn * @return _lastDrawnAt * @return _remainingBalance */ function vestingScheduleForBeneficiary(address _beneficiary) external view returns (uint256 _amount, uint256 _totalDrawn, uint256 _lastDrawnAt, uint256 _remainingBalance) { return ( vestedAmount[_beneficiary], totalDrawn[_beneficiary], lastDrawnAt[_beneficiary], vestedAmount[_beneficiary].sub(totalDrawn[_beneficiary]) ); } /** * @notice Draw down amount currently available (based on the block timestamp) * @param _beneficiary beneficiary of the vested tokens * @return _amount tokens due from vesting schedule */ function availableDrawDownAmount(address _beneficiary) external view returns (uint256 _amount) { return _availableDrawDownAmount(_beneficiary); } /** * @notice Balance remaining in vesting schedule * @param _beneficiary beneficiary of the vested tokens * @return _remainingBalance tokens still due (and currently locked) from vesting schedule */ function remainingBalance(address _beneficiary) external view returns (uint256) { return vestedAmount[_beneficiary].sub(totalDrawn[_beneficiary]); } // Internal function _createVestingSchedule(address _beneficiary, uint256 _amount) internal returns (bool) { require(_beneficiary != address(0), "VestingContract::createVestingSchedule: Beneficiary cannot be empty"); require(_amount > 0, "VestingContract::createVestingSchedule: Amount cannot be empty"); // Ensure one per address require(vestedAmount[_beneficiary] == 0, "VestingContract::createVestingSchedule: Schedule already in flight"); vestedAmount[_beneficiary] = _amount; // Vest the tokens into the deposit account and delegate to the beneficiary require( token.transferFrom(msg.sender, address(this), _amount), "VestingContract::createVestingSchedule: Unable to escrow tokens" ); emit ScheduleCreated(_beneficiary); return true; } function _drawDown(address _beneficiary) internal returns (bool) { require(vestedAmount[_beneficiary] > 0, "VestingContract::_drawDown: There is no schedule currently in flight"); uint256 amount = _availableDrawDownAmount(_beneficiary); require(amount > 0, "VestingContract::_drawDown: No allowance left to withdraw"); // Update last drawn to now lastDrawnAt[_beneficiary] = _getNow(); // Increase total drawn amount totalDrawn[_beneficiary] = totalDrawn[_beneficiary].add(amount); // Safety measure - this should never trigger require( totalDrawn[_beneficiary] <= vestedAmount[_beneficiary], "VestingContract::_drawDown: Safety Mechanism - Drawn exceeded Amount Vested" ); // Issue tokens to beneficiary require(token.transfer(_beneficiary, amount), "VestingContract::_drawDown: Unable to transfer tokens"); emit DrawDown(_beneficiary, amount); return true; } function _getNow() internal view returns (uint256) { return block.timestamp; } function _availableDrawDownAmount(address _beneficiary) internal view returns (uint256 _amount) { // Cliff Period if (_getNow() <= start.add(cliffDuration)) { // the cliff period has not ended, no tokens to draw down return 0; } // Schedule complete if (_getNow() > end) { return vestedAmount[_beneficiary].sub(totalDrawn[_beneficiary]); } // Schedule is active // Work out when the last invocation was uint256 timeLastDrawnOrStart = lastDrawnAt[_beneficiary] == 0 ? start : lastDrawnAt[_beneficiary]; // Find out how much time has past since last invocation uint256 timePassedSinceLastInvocation = _getNow().sub(timeLastDrawnOrStart); // Work out how many due tokens - time passed * rate per second uint256 drawDownRate = vestedAmount[_beneficiary].div(end.sub(start)); uint256 amount = timePassedSinceLastInvocation.mul(drawDownRate); return amount; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"},{"internalType":"uint256","name":"_cliffDurationInSecs","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_beneficiary","type":"address"},{"indexed":true,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"DrawDown","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_beneficiary","type":"address"}],"name":"ScheduleCreated","type":"event"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"availableDrawDownAmount","outputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cliffDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"createVestingSchedule","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_beneficiaries","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"createVestingSchedules","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drawDown","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"end","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastDrawnAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"remainingBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalDrawn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vestedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"vestingScheduleForBeneficiary","outputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_totalDrawn","type":"uint256"},{"internalType":"uint256","name":"_lastDrawnAt","type":"uint256"},{"internalType":"uint256","name":"_remainingBalance","type":"uint256"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101005760003560e01c8063be9a655511610097578063da0ebf8e11610066578063da0ebf8e14610341578063efbe1c1c14610367578063f2fde38b1461036f578063fc0c546a1461039757610100565b8063be9a6555146102bf578063c570b835146102c7578063d3a637f214610313578063d85349f71461033957610100565b806365281d15116100d357806365281d15146101ab5780636aa22091146101d15780638da5cb5b146102935780639e1a4d19146102b757610100565b806315298b5e14610105578063384711cc1461013d578063419544a014610163578063634107f8146101a3575b600080fd5b61012b6004803603602081101561011b57600080fd5b50356001600160a01b031661039f565b60408051918252519081900360200190f35b61012b6004803603602081101561015357600080fd5b50356001600160a01b03166103b2565b61018f6004803603604081101561017957600080fd5b506001600160a01b0381351690602001356103c4565b604080519115158252519081900360200190f35b61018f610423565b61012b600480360360208110156101c157600080fd5b50356001600160a01b0316610495565b61018f600480360360408110156101e757600080fd5b81019060208101813564010000000081111561020257600080fd5b82018360208201111561021457600080fd5b8035906020019184602083028401116401000000008311171561023657600080fd5b91939092909160208101903564010000000081111561025457600080fd5b82018360208201111561026657600080fd5b8035906020019184602083028401116401000000008311171561028857600080fd5b5090925090506104c2565b61029b6105eb565b604080516001600160a01b039092168252519081900360200190f35b61012b6105fa565b61012b610676565b6102ed600480360360208110156102dd57600080fd5b50356001600160a01b031661067c565b604080519485526020850193909352838301919091526060830152519081900360800190f35b61012b6004803603602081101561032957600080fd5b50356001600160a01b03166106cd565b61012b6106df565b61012b6004803603602081101561035757600080fd5b50356001600160a01b03166106e5565b61012b6106f7565b6103956004803603602081101561038557600080fd5b50356001600160a01b03166106fd565b005b61029b610768565b60006103aa82610777565b90505b919050565b60056020526000908152604090205481565b6004546000906001600160a01b031633146104105760405162461bcd60e51b8152600401808060200182810382526032815260200180610f666032913960400191505060405180910390fd5b61041a8383610896565b90505b92915050565b60006002600054141561047d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005561048b33610a7e565b9050600160005590565b6001600160a01b03811660009081526006602090815260408083205460059092528220546103aa91610cb6565b6004546000906001600160a01b0316331461050e5760405162461bcd60e51b81526004018080602001828103825260338152602001806110cd6033913960400191505060405180910390fd5b8361054a5760405162461bcd60e51b815260040180806020018281038252603381526020018061113e6033913960400191505060405180910390fd5b8382146105885760405162461bcd60e51b8152600401808060200182810382526043815260200180610f236043913960600191505060405180910390fd5b600160005b858110156105e15760008787838181106105a357fe5b905060200201356001600160a01b0316905060008686848181106105c357fe5b9050602002013590506105d68282610896565b50505060010161058d565b5095945050505050565b6004546001600160a01b031681565b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561064557600080fd5b505afa158015610659573d6000803e3d6000fd5b505050506040513d602081101561066f57600080fd5b5051905090565b60015481565b6001600160a01b038116600090815260056020818152604080842054600683528185205460078452918520549390925283928392839290916106be8383610cb6565b93509350935093509193509193565b60066020526000908152604090205481565b60035481565b60076020526000908152604090205481565b60025481565b6004546001600160a01b031633146107465760405162461bcd60e51b815260040180806020018281038252602e8152602001806111aa602e913960400191505060405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031681565b6000610790600354600154610cf890919063ffffffff16565b610798610d52565b116107a5575060006103ad565b6002546107b0610d52565b11156107eb576001600160a01b0382166000908152600660209081526040808320546005909252909120546107e491610cb6565b90506103ad565b6001600160a01b03821660009081526007602052604081205415610827576001600160a01b03831660009081526007602052604090205461082b565b6001545b905060006108418261083b610d52565b90610cb6565b9050600061087e61085f600154600254610cb690919063ffffffff16565b6001600160a01b03871660009081526005602052604090205490610d56565b9050600061088c8383610d98565b9695505050505050565b60006001600160a01b0383166108dd5760405162461bcd60e51b81526004018080602001828103825260438152602001806110256043913960600191505060405180910390fd5b6000821161091c5760405162461bcd60e51b815260040180806020018281038252603e815260200180611100603e913960400191505060405180910390fd5b6001600160a01b038316600090815260056020526040902054156109715760405162461bcd60e51b8152600401808060200182810382526042815260200180610f986042913960600191505060405180910390fd5b6001600160a01b03808416600090815260056020908152604080832086905560085481516323b872dd60e01b81523360048201523060248201526044810188905291519416936323b872dd93606480840194938390030190829087803b1580156109da57600080fd5b505af11580156109ee573d6000803e3d6000fd5b505050506040513d6020811015610a0457600080fd5b5051610a415760405162461bcd60e51b815260040180806020018281038252603f8152602001806111d8603f913960400191505060405180910390fd5b6040516001600160a01b038416907f0c1f0a8580825e2b9c0e184186aba220d33d5abf7ee14f99dbe0d7886dbb3ee490600090a250600192915050565b6001600160a01b038116600090815260056020526040812054610ad25760405162461bcd60e51b81526004018080602001828103825260448152602001806110686044913960600191505060405180910390fd5b6000610add83610777565b905060008111610b1e5760405162461bcd60e51b81526004018080602001828103825260398152602001806111716039913960400191505060405180910390fd5b610b26610d52565b6001600160a01b038416600090815260076020908152604080832093909355600690522054610b559082610cf8565b6001600160a01b0384166000908152600660208181526040808420859055600582529092205491521015610bba5760405162461bcd60e51b815260040180806020018281038252604b815260200180610fda604b913960600191505060405180910390fd5b6008546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015610c1057600080fd5b505af1158015610c24573d6000803e3d6000fd5b505050506040513d6020811015610c3a57600080fd5b5051610c775760405162461bcd60e51b8152600401808060200182810382526035815260200180610eee6035913960400191505060405180910390fd5b60405181906001600160a01b038516907f59901f31ae2f183042d33e59b8b37be57d21ddf6351ebf066ee2eace7229bdfa90600090a350600192915050565b600061041a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610df1565b60008282018381101561041a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b4290565b600061041a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610e88565b600082610da75750600061041d565b82820282848281610db457fe5b041461041a5760405162461bcd60e51b81526004018080602001828103825260218152602001806110ac6021913960400191505060405180910390fd5b60008184841115610e805760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e45578181015183820152602001610e2d565b50505050905090810190601f168015610e725780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183610ed75760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610e45578181015183820152602001610e2d565b506000838581610ee357fe5b049594505050505056fe56657374696e67436f6e74726163743a3a5f64726177446f776e3a20556e61626c6520746f207472616e7366657220746f6b656e7356657374696e67436f6e74726163743a3a63726561746556657374696e675363686564756c65733a204172726179206c656e6774687320646f206e6f74206d6174636856657374696e67436f6e74726163743a3a63726561746556657374696e675363686564756c653a204f6e6c79204f776e657256657374696e67436f6e74726163743a3a63726561746556657374696e675363686564756c653a205363686564756c6520616c726561647920696e20666c6967687456657374696e67436f6e74726163743a3a5f64726177446f776e3a20536166657479204d656368616e69736d202d20447261776e20657863656564656420416d6f756e742056657374656456657374696e67436f6e74726163743a3a63726561746556657374696e675363686564756c653a2042656e65666963696172792063616e6e6f7420626520656d70747956657374696e67436f6e74726163743a3a5f64726177446f776e3a205468657265206973206e6f207363686564756c652063757272656e746c7920696e20666c69676874536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7756657374696e67436f6e74726163743a3a63726561746556657374696e675363686564756c65733a204f6e6c79204f776e657256657374696e67436f6e74726163743a3a63726561746556657374696e675363686564756c653a20416d6f756e742063616e6e6f7420626520656d70747956657374696e67436f6e74726163743a3a63726561746556657374696e675363686564756c65733a20456d707479204461746156657374696e67436f6e74726163743a3a5f64726177446f776e3a204e6f20616c6c6f77616e6365206c65667420746f20776974686472617756657374696e67436f6e74726163743a3a7472616e736665724f776e6572736869703a204f6e6c79206f776e657256657374696e67436f6e74726163743a3a63726561746556657374696e675363686564756c653a20556e61626c6520746f20657363726f7720746f6b656e73a2646970667358221220c984b926503d66816fa37bac18831e17b71d29ddae849ca41b8d23e17e45567764736f6c634300060c0033
Deployed Bytecode Sourcemap
10033:9345:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15731:159;;;;;;;;;;;;;;;;-1:-1:-1;15731:159:0;-1:-1:-1;;;;;15731:159:0;;:::i;:::-;;;;;;;;;;;;;;;;10826:47;;;;;;;;;;;;;;;;-1:-1:-1;10826:47:0;-1:-1:-1;;;;;10826:47:0;;:::i;13494:258::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;13494:258:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;14323:104;;;:::i;16127:162::-;;;;;;;;;;;;;;;;-1:-1:-1;16127:162:0;-1:-1:-1;;;;;16127:162:0;;:::i;12403:799::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12403:799:0;;-1:-1:-1;12403:799:0;-1:-1:-1;12403:799:0;:::i;10704:20::-;;;:::i;:::-;;;;-1:-1:-1;;;;;10704:20:0;;;;;;;;;;;;;;14694:112;;;:::i;10463:20::-;;;:::i;15110:393::-;;;;;;;;;;;;;;;;-1:-1:-1;15110:393:0;-1:-1:-1;;;;;15110:393:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10996:45;;;;;;;;;;;;;;;;-1:-1:-1;10996:45:0;-1:-1:-1;;;;;10996:45:0;;:::i;10616:28::-;;;:::i;11114:46::-;;;;;;;;;;;;;;;;-1:-1:-1;11114:46:0;-1:-1:-1;;;;;11114:46:0;;:::i;10546:18::-;;;:::i;13976:180::-;;;;;;;;;;;;;;;;-1:-1:-1;13976:180:0;-1:-1:-1;;;;;13976:180:0;;:::i;:::-;;11213:19;;;:::i;15731:159::-;15809:15;15844:38;15869:12;15844:24;:38::i;:::-;15837:45;;15731:159;;;;:::o;10826:47::-;;;;;;;;;;;;;:::o;13494:258::-;13621:5;;13582:4;;-1:-1:-1;;;;;13621:5:0;13607:10;:19;13599:82;;;;-1:-1:-1;;;13599:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13699:45;13722:12;13736:7;13699:22;:45::i;:::-;13692:52;;13494:258;;;;;:::o;14323:104::-;14374:4;9078:1;9684:7;;:19;;9676:63;;;;;-1:-1:-1;;;9676:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;9078:1;9817:7;:18;14398:21:::1;14408:10;14398:9;:21::i;:::-;14391:28;;9034:1:::0;9996:7;:22;14323:104;:::o;16127:162::-;-1:-1:-1;;;;;16256:24:0;;16198:7;16256:24;;;:10;:24;;;;;;;;;16225:12;:26;;;;;;:56;;:30;:56::i;12403:799::-;12581:5;;12542:4;;-1:-1:-1;;;;;12581:5:0;12567:10;:19;12559:83;;;;-1:-1:-1;;;12559:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12661:25;12653:89;;;;-1:-1:-1;;;12653:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12775:40;;;12753:157;;;;-1:-1:-1;;;12753:157:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12937:4;12923:11;12954:215;12970:25;;;12954:215;;;13017:19;13039:14;;13054:1;13039:17;;;;;;;;;;;;;-1:-1:-1;;;;;13039:17:0;13017:39;;13071:14;13088:8;;13097:1;13088:11;;;;;;;;;;;;;13071:28;;13114:43;13137:11;13150:6;13114:22;:43::i;:::-;-1:-1:-1;;;12997:3:0;;12954:215;;;-1:-1:-1;13188:6:0;12403:799;-1:-1:-1;;;;;12403:799:0:o;10704:20::-;;;-1:-1:-1;;;;;10704:20:0;;:::o;14694:112::-;14768:5;;:30;;;-1:-1:-1;;;14768:30:0;;14792:4;14768:30;;;;;;14741:7;;-1:-1:-1;;;;;14768:5:0;;:15;;:30;;;;;;;;;;;;;;:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14768:30:0;;-1:-1:-1;14694:112:0;:::o;10463:20::-;;;;:::o;15110:393::-;-1:-1:-1;;;;;15320:26:0;;15204:15;15320:26;;;:12;:26;;;;;;;;;15357:10;:24;;;;;;15392:11;:25;;;;;;15428:26;;;;15204:15;;;;;;15320:26;;15428:56;15320:26;15357:24;15428:30;:56::i;:::-;15302:193;;;;;;;;15110:393;;;;;:::o;10996:45::-;;;;;;;;;;;;;:::o;10616:28::-;;;;:::o;11114:46::-;;;;;;;;;;;;;:::o;10546:18::-;;;;:::o;13976:180::-;14064:5;;-1:-1:-1;;;;;14064:5:0;14050:10;:19;14042:78;;;;-1:-1:-1;;;14042:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14131:5;:17;;-1:-1:-1;;;;;;14131:17:0;-1:-1:-1;;;;;14131:17:0;;;;;;;;;;13976:180::o;11213:19::-;;;-1:-1:-1;;;;;11213:19:0;;:::o;18329:1046::-;18408:15;18480:24;18490:13;;18480:5;;:9;;:24;;;;:::i;:::-;18467:9;:7;:9::i;:::-;:37;18463:149;;-1:-1:-1;18599:1:0;18592:8;;18463:149;18670:3;;18658:9;:7;:9::i;:::-;:15;18654:111;;;-1:-1:-1;;;;;18728:24:0;;;;;;:10;:24;;;;;;;;;18697:12;:26;;;;;;;:56;;:30;:56::i;:::-;18690:63;;;;18654:111;-1:-1:-1;;;;;18891:25:0;;18860:28;18891:25;;;:11;:25;;;;;;:30;:66;;-1:-1:-1;;;;;18932:25:0;;;;;;:11;:25;;;;;;18891:66;;;18924:5;;18891:66;18860:97;;19036:37;19076:35;19090:20;19076:9;:7;:9::i;:::-;:13;;:35::i;:::-;19036:75;;19197:20;19220:46;19251:14;19259:5;;19251:3;;:7;;:14;;;;:::i;:::-;-1:-1:-1;;;;;19220:26:0;;;;;;:12;:26;;;;;;;:30;:46::i;:::-;19197:69;-1:-1:-1;19277:14:0;19294:47;:29;19197:69;19294:33;:47::i;:::-;19277:64;18329:1046;-1:-1:-1;;;;;;18329:1046:0:o;16316:860::-;16405:4;-1:-1:-1;;;;;16430:26:0;;16422:106;;;;-1:-1:-1;;;16422:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16557:1;16547:7;:11;16539:86;;;;-1:-1:-1;;;16539:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16681:26:0;;;;;;:12;:26;;;;;;:31;16673:110;;;;-1:-1:-1;;;16673:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16796:26:0;;;;;;;:12;:26;;;;;;;;:36;;;16952:5;;:54;;-1:-1:-1;;;16952:54:0;;16971:10;16952:54;;;;16991:4;16952:54;;;;;;;;;;;;:5;;;:18;;:54;;;;;16796:26;16952:54;;;;;;;:5;:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16952:54:0;16930:167;;;;-1:-1:-1;;;16930:167:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17115:29;;-1:-1:-1;;;;;17115:29:0;;;;;;;;-1:-1:-1;17164:4:0;16316:860;;;;:::o;17184:1031::-;-1:-1:-1;;;;;17268:26:0;;17243:4;17268:26;;;:12;:26;;;;;;17260:111;;;;-1:-1:-1;;;17260:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17384:14;17401:38;17426:12;17401:24;:38::i;:::-;17384:55;;17467:1;17458:6;:10;17450:80;;;;-1:-1:-1;;;17450:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17608:9;:7;:9::i;:::-;-1:-1:-1;;;;;17580:25:0;;;;;;:11;:25;;;;;;;;:37;;;;17697:10;:24;;;;:36;;17726:6;17697:28;:36::i;:::-;-1:-1:-1;;;;;17670:24:0;;;;;;:10;:24;;;;;;;;:63;;;17851:12;:26;;;;;;17823:24;;-1:-1:-1;17823:54:0;17801:179;;;;-1:-1:-1;;;17801:179:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18041:5;;:36;;;-1:-1:-1;;;18041:36:0;;-1:-1:-1;;;;;18041:36:0;;;;;;;;;;;;;;;:5;;;;;:14;;:36;;;;;;;;;;;;;;:5;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18041:36:0;18033:102;;;;-1:-1:-1;;;18033:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18153:30;;18176:6;;-1:-1:-1;;;;;18153:30:0;;;;;;;;-1:-1:-1;18203:4:0;;17184:1031;-1:-1:-1;;17184:1031:0:o;773:136::-;831:7;858:43;862:1;865;858:43;;;;;;;;;;;;;;;;;:3;:43::i;317:181::-;375:7;407:5;;;431:6;;;;423:46;;;;;-1:-1:-1;;;423:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;18223:92;18292:15;18223:92;:::o;2586:132::-;2644:7;2671:39;2675:1;2678;2671:39;;;;;;;;;;;;;;;;;:3;:39::i;1647:471::-;1705:7;1950:6;1946:47;;-1:-1:-1;1980:1:0;1973:8;;1946:47;2017:5;;;2021:1;2017;:5;:1;2041:5;;;;;:10;2033:56;;;;-1:-1:-1;;;2033:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1204:192;1290:7;1326:12;1318:6;;;;1310:29;;;;-1:-1:-1;;;1310:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1362:5:0;;;1204:192::o;3206:345::-;3292:7;3394:12;3387:5;3379:28;;;;-1:-1:-1;;;3379:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3418:9;3434:1;3430;:5;;;;;;;3206:345;-1:-1:-1;;;;;3206:345:0:o
Swarm Source
ipfs://c984b926503d66816fa37bac18831e17b71d29ddae849ca41b8d23e17e455677
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.