Source Code
Overview
S Balance
Token Holdings
More Info
ContractCreator
Latest 17 from a total of 17 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim All | 22481331 | 9 hrs ago | IN | 0 S | 0.00012021 | ||||
Withdraw | 22481260 | 9 hrs ago | IN | 0 S | 0.00008772 | ||||
Withdraw | 22480987 | 9 hrs ago | IN | 0 S | 0.00008268 | ||||
Withdraw | 22480829 | 9 hrs ago | IN | 0 S | 0.00008778 | ||||
Withdraw | 22480338 | 9 hrs ago | IN | 0 S | 0.00008779 | ||||
Withdraw | 22480153 | 9 hrs ago | IN | 0 S | 0.00008778 | ||||
Deposit | 22479965 | 9 hrs ago | IN | 0 S | 0.00021004 | ||||
Claim All | 22479768 | 9 hrs ago | IN | 0 S | 0.00012021 | ||||
Deposit | 22479499 | 9 hrs ago | IN | 0 S | 0.00034037 | ||||
Deposit | 22479392 | 9 hrs ago | IN | 0 S | 0.00031616 | ||||
Deposit | 22479320 | 9 hrs ago | IN | 0 S | 0.00027776 | ||||
Start | 22479179 | 9 hrs ago | IN | 0 S | 0.00010699 | ||||
Send Premint | 22479176 | 9 hrs ago | IN | 0 S | 0.00011342 | ||||
Create Pool | 22479147 | 9 hrs ago | IN | 0 S | 0.0001139 | ||||
Create Pool | 22479147 | 9 hrs ago | IN | 0 S | 0.00011391 | ||||
Create Pool | 22479144 | 9 hrs ago | IN | 0 S | 0.00009201 | ||||
Set All | 22478634 | 9 hrs ago | IN | 0 S | 0.00011802 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
22481331 | 9 hrs ago | 0 S | ||||
22481260 | 9 hrs ago | 0 S | ||||
22480987 | 9 hrs ago | 0 S | ||||
22480829 | 9 hrs ago | 0 S | ||||
22480338 | 9 hrs ago | 0 S | ||||
22480153 | 9 hrs ago | 0 S | ||||
22479965 | 9 hrs ago | 0 S | ||||
22479768 | 9 hrs ago | 0 S | ||||
22479499 | 9 hrs ago | 0 S | ||||
22479499 | 9 hrs ago | 0 S | ||||
22479499 | 9 hrs ago | 0 S | ||||
22479392 | 9 hrs ago | 0 S | ||||
22479392 | 9 hrs ago | 0 S | ||||
22479392 | 9 hrs ago | 0 S | ||||
22479320 | 9 hrs ago | 0 S | ||||
22479179 | 9 hrs ago | 0 S | ||||
22479176 | 9 hrs ago | 0 S | ||||
22479176 | 9 hrs ago | 0 S | ||||
22479147 | 9 hrs ago | 0 S | ||||
22479147 | 9 hrs ago | 0 S | ||||
22479144 | 9 hrs ago | 0 S | ||||
22478634 | 9 hrs ago | 0 S | ||||
22478634 | 9 hrs ago | 0 S | ||||
22478634 | 9 hrs ago | 0 S | ||||
22478634 | 9 hrs ago | 0 S |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Genesis
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.24; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./interfaces/IToken.sol"; import "./interfaces/ILPManager.sol"; import "./interfaces/IManager.sol"; contract Genesis is ReentrancyGuard { IManager private Manager; IToken private Token; ILPManager private LPManager; address private Treasury; uint256 public rewardsLeft; uint256 public startAt; uint256 public endAt; uint256 private _duration = 1 days; uint256 public rewardsPerSec = 1 * 1e18; uint256 public _accRewardsGlobal; uint256 private _lastRewardUpdateTime; uint256 private _forTreasury = 40; uint256 private _forLP = 60; uint256 public lastId = 1; struct Pool { address token; uint256 poolShares; uint256 amountDeposited; uint256 depositFee; } struct User { uint256 deposited; uint256 rewardDebt; } mapping(uint256 => Pool) public pools; mapping(address => mapping(uint256 => User)) public userDetailsByPId; constructor(address _manager) { Manager = IManager(_manager); } modifier onlyOwner() { require(msg.sender == Manager.owner(), "Not Authorized"); _; } function setManager(address _manager) external onlyOwner { Manager = IManager(_manager); } function createPool( address token, uint256 shares, uint256 fee ) external onlyOwner { pools[lastId] = Pool(token, shares, 0, fee); lastId++; } function modifyPool( uint256 id, uint256 shares, uint256 fee ) external onlyOwner { Pool storage pool = pools[id]; pool.poolShares = shares; pool.depositFee = fee; } function setProportions(uint256 _tresury, uint256 _lp) external onlyOwner { _forTreasury = _tresury; _forLP = _lp; } function setRewardsPerSec(uint256 _rewardsPerSec) external onlyOwner { rewardsPerSec = _rewardsPerSec; } function setAll() external onlyOwner { Token = IToken(_getContract("Token")); LPManager = ILPManager(_getContract("LPManager")); Treasury = _getContract("Treasury"); } function sendPremint(uint256 amount) external onlyOwner { Token.transferFrom(msg.sender, address(this), amount); rewardsLeft += amount; } function start() external onlyOwner { _lastRewardUpdateTime = block.timestamp; startAt = block.timestamp; endAt = startAt + _duration; } function deposit(uint256 id, uint256 amount) external nonReentrant { require( block.timestamp >= startAt && block.timestamp < endAt, "genesis is closed" ); _updateRewards(); Pool storage pool = pools[id]; User storage user = userDetailsByPId[msg.sender][id]; uint256 fee = (amount * pool.depositFee) / 100; uint256 amountAfterFee = amount - fee; pool.amountDeposited += amountAfterFee; user.deposited += amountAfterFee; _updateDebt(msg.sender, id); IToken(pool.token).transferFrom(msg.sender, address(this), amount); if (fee > 0) { uint256 feeTreasury = (fee * _forTreasury) / 100; uint256 feeLP = (fee * _forLP) / 100; IToken(pool.token).transfer(Treasury, feeTreasury); IToken(pool.token).transfer(address(LPManager), feeLP); // LPManager.addLiquidity(pool.token); } } function withdraw(uint256 id, uint256 amount) external nonReentrant { _updateRewards(); Pool storage pool = pools[id]; User storage user = userDetailsByPId[msg.sender][id]; require(user.deposited >= amount, "Not enough deposited"); unchecked { pool.amountDeposited -= amount; user.deposited -= amount; } _updateDebt(msg.sender, id); IToken(pool.token).transfer(msg.sender, amount); } function claim(uint256 id) external nonReentrant { _updateRewards(); uint256 rewards = _rewards(msg.sender, id); require(rewards > 0, "Nothing to claim"); rewards = rewardsLeft > rewards ? rewards : rewardsLeft; _updateDebt(msg.sender, id); if (rewardsLeft < rewards) { rewardsLeft = 0; } else { rewardsLeft -= rewards; } Token.transfer(msg.sender, rewards); } function claimAll() external nonReentrant { _updateRewards(); address sender = msg.sender; uint256 sum = 0; for (uint256 i = 1; i < lastId; i++) { uint256 add = _rewards(sender, i); if (add > 0) { sum += add; _updateDebt(sender, i); } } if (rewardsLeft < sum) { sum = rewardsLeft; rewardsLeft = 0; } else { rewardsLeft -= sum; } Token.transfer(msg.sender, sum); } function _updateRewards() private { uint256 timePassed = block.timestamp - _lastRewardUpdateTime; if (timePassed == 0 || block.timestamp >= endAt) { return; } uint256 rewards = (timePassed * rewardsPerSec); _accRewardsGlobal += rewards; _lastRewardUpdateTime = block.timestamp; } function _updateDebt(address user, uint256 id) private { Pool storage pool = pools[id]; User storage userDetails = userDetailsByPId[user][id]; userDetails.rewardDebt = (userDetails.deposited * pool.poolShares * _accRewardsGlobal) / (100 * pool.amountDeposited); } function _rewards(address user, uint256 id) private view returns (uint256) { Pool storage pool = pools[id]; User storage userDetails = userDetailsByPId[user][id]; if (pool.amountDeposited == 0 || userDetails.deposited == 0) { return 0; } return (userDetails.deposited * pool.poolShares * _accRewardsGlobal) / (100 * pool.amountDeposited) - userDetails.rewardDebt; } function _getContract( string memory contractName ) internal view returns (address) { return Manager.getContract(contractName); } function getTotalRewards(address user) external view returns (uint256) { uint256 sum = 0; for (uint256 i = 0; i < lastId; i++) { sum += _rewards(user, i); } return sum; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @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 EIP-1153 (transient storage) is available on the chain you're deploying at, * consider using {ReentrancyGuardTransient} instead. * * 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; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); 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 making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.24; interface ILPManager { function addLiquidity(address token) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.20; interface IManager { function getContract(string memory name) external view returns (address); function owner() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ interface IToken { /** * @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 Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); function mint(address to, uint256 value) external; function burnFrom(address from, uint256 value) external; }
{ "optimizer": { "enabled": true, "runs": 1000 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"_accRewardsGlobal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"createPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getTotalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"modifyPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pools","outputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"poolShares","type":"uint256"},{"internalType":"uint256","name":"amountDeposited","type":"uint256"},{"internalType":"uint256","name":"depositFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsPerSec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sendPremint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tresury","type":"uint256"},{"internalType":"uint256","name":"_lp","type":"uint256"}],"name":"setProportions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsPerSec","type":"uint256"}],"name":"setRewardsPerSec","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userDetailsByPId","outputs":[{"internalType":"uint256","name":"deposited","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405262015180600855670de0b6b3a76400006009556028600c55603c600d556001600e55348015603157600080fd5b506040516117cd3803806117cd833981016040819052604e916077565b6001600081905580546001600160a01b0319166001600160a01b039290921691909117905560a5565b600060208284031215608857600080fd5b81516001600160a01b0381168114609e57600080fd5b9392505050565b611719806100b46000396000f3fe608060405234801561001057600080fd5b50600436106101765760003560e01c8063a8bc58f2116100d8578063c1292cc31161008c578063d0ebdbe711610066578063d0ebdbe71461031e578063d1058e5914610331578063e2bbb1581461033957600080fd5b8063c1292cc3146102c5578063c7446565146102ce578063ce0b6fd6146102d757600080fd5b8063b039ddf6116100bd578063b039ddf614610297578063bd2c0074146102aa578063be9a6555146102bd57600080fd5b8063a8bc58f214610225578063ac4afa381461022e57600080fd5b80633e7d15c01161012f578063497af9d011610114578063497af9d0146101f657806367a249f7146102095780637cc3ae8c1461021c57600080fd5b80633e7d15c0146101db578063441a3e70146101e357600080fd5b8063280df78511610160578063280df785146101ac5780632bcf161c146101b5578063379607f5146101c857600080fd5b80628934521461017b5780630407539914610197575b600080fd5b61018460095481565b6040519081526020015b60405180910390f35b6101aa6101a53660046114c7565b61034c565b005b610184600a5481565b6101846101c33660046114f5565b61041e565b6101aa6101d63660046114c7565b610452565b6101aa61058f565b6101aa6101f1366004611519565b610771565b6101aa610204366004611519565b610897565b6101aa6102173660046114c7565b61096a565b61018460075481565b61018460055481565b61026d61023c3660046114c7565b600f6020526000908152604090208054600182015460028301546003909301546001600160a01b0390921692909184565b604080516001600160a01b039095168552602085019390935291830152606082015260800161018e565b6101aa6102a536600461153b565b610ac8565b6101aa6102b8366004611570565b610c12565b6101aa610cf7565b610184600e5481565b61018460065481565b6103096102e536600461159c565b60106020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161018e565b6101aa61032c3660046114f5565b610ddb565b6101aa610ec5565b6101aa610347366004611519565b610fce565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561039f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c391906115c8565b6001600160a01b0316336001600160a01b0316146104195760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b600955565b600080805b600e5481101561044b576104378482611291565b61044190836115fb565b9150600101610423565b5092915050565b61045a61132f565b610462611372565b600061046e3383611291565b9050600081116104c05760405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d000000000000000000000000000000006044820152606401610410565b80600554116104d1576005546104d3565b805b90506104df33836113cc565b8060055410156104f357600060055561050b565b8060056000828254610505919061160e565b90915550505b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af115801561055c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105809190611621565b505061058c6001600055565b50565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060691906115c8565b6001600160a01b0316336001600160a01b0316146106575760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b6106956040518060400160405280600581526020017f546f6b656e00000000000000000000000000000000000000000000000000000081525061143c565b600280546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600981527f4c504d616e61676572000000000000000000000000000000000000000000000060208201526106f29061143c565b600380546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600881527f5472656173757279000000000000000000000000000000000000000000000000602082015261074f9061143c565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b61077961132f565b610781611372565b6000828152600f602090815260408083203384526010835281842086855290925290912080548311156107f65760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768206465706f73697465640000000000000000000000006044820152606401610410565b60028201805484900390558054839003815561081233856113cc565b815460405163a9059cbb60e01b8152336004820152602481018590526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610862573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108869190611621565b5050506108936001600055565b5050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090e91906115c8565b6001600160a01b0316336001600160a01b03161461095f5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b600c91909155600d55565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e191906115c8565b6001600160a01b0316336001600160a01b031614610a325760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610a89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aad9190611621565b508060056000828254610ac091906115fb565b909155505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3f91906115c8565b6001600160a01b0316336001600160a01b031614610b905760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b604080516080810182526001600160a01b0385811682526020808301868152600084860181815260608601888152600e80548452600f909552968220955186546001600160a01b03191695169490941785559051600185015591516002840155925160039092019190915581549190610c0883611643565b9190505550505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8991906115c8565b6001600160a01b0316336001600160a01b031614610cda5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b6000928352600f6020526040909220600181019190915560030155565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6e91906115c8565b6001600160a01b0316336001600160a01b031614610dbf5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b42600b8190556006819055600854610dd6916115fb565b600755565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5291906115c8565b6001600160a01b0316336001600160a01b031614610ea35760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b610ecd61132f565b610ed5611372565b33600060015b600e54811015610f18576000610ef18483611291565b90508015610f0f57610f0381846115fb565b9250610f0f84836113cc565b50600101610edb565b50806005541015610f325750600580546000909155610f4a565b8060056000828254610f44919061160e565b90915550505b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610f9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fbf9190611621565b505050610fcc6001600055565b565b610fd661132f565b6006544210158015610fe9575060075442105b6110355760405162461bcd60e51b815260206004820152601160248201527f67656e6573697320697320636c6f7365640000000000000000000000000000006044820152606401610410565b61103d611372565b6000828152600f60209081526040808320338452601083528184208685529092528220600382015491929091606490611076908661165c565b6110809190611673565b9050600061108e828661160e565b9050808460020160008282546110a491906115fb565b90915550508254819084906000906110bd9084906115fb565b909155506110cd905033876113cc565b83546040516323b872dd60e01b8152336004820152306024820152604481018790526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015611123573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111479190611621565b5081156112835760006064600c5484611160919061165c565b61116a9190611673565b905060006064600d548561117e919061165c565b6111889190611673565b86546004805460405163a9059cbb60e01b81526001600160a01b03918216928101929092526024820186905292935091169063a9059cbb906044016020604051808303816000875af11580156111e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112069190611621565b50855460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af115801561125b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127f9190611621565b5050505b505050506108936001600055565b6000818152600f602090815260408083206001600160a01b0386168452601083528184208585529092528220600282015415806112cd57508054155b156112dd57600092505050611329565b600181015460028301546112f290606461165c565b600a5460018501548454611306919061165c565b611310919061165c565b61131a9190611673565b611324919061160e565b925050505b92915050565b60026000540361136b576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b6000600b5442611382919061160e565b905080158061139357506007544210155b1561139b5750565b6000600954826113ab919061165c565b905080600a60008282546113bf91906115fb565b909155505042600b555050565b6000818152600f602090815260408083206001600160a01b038616845260108352818420858552909252909120600282015461140990606461165c565b600a546001840154835461141d919061165c565b611427919061165c565b6114319190611673565b600190910155505050565b6001546040517f358177730000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690633581777390611486908590600401611695565b602060405180830381865afa1580156114a3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132991906115c8565b6000602082840312156114d957600080fd5b5035919050565b6001600160a01b038116811461058c57600080fd5b60006020828403121561150757600080fd5b8135611512816114e0565b9392505050565b6000806040838503121561152c57600080fd5b50508035926020909101359150565b60008060006060848603121561155057600080fd5b833561155b816114e0565b95602085013595506040909401359392505050565b60008060006060848603121561158557600080fd5b505081359360208301359350604090920135919050565b600080604083850312156115af57600080fd5b82356115ba816114e0565b946020939093013593505050565b6000602082840312156115da57600080fd5b8151611512816114e0565b634e487b7160e01b600052601160045260246000fd5b80820180821115611329576113296115e5565b81810381811115611329576113296115e5565b60006020828403121561163357600080fd5b8151801515811461151257600080fd5b600060018201611655576116556115e5565b5060010190565b8082028115828204841417611329576113296115e5565b60008261169057634e487b7160e01b600052601260045260246000fd5b500490565b602081526000825180602084015260005b818110156116c357602081860181015160408684010152016116a6565b506000604082850101526040601f19601f8301168401019150509291505056fea264697066735822122073e6d21c758cb9a778e9fbdd6060d1afe564a21b11c10db6b7eef4ce7a8c52c164736f6c634300081a0033000000000000000000000000cb5bb4518a06d9d5bfc6296b5ce6ec8060bb0386
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101765760003560e01c8063a8bc58f2116100d8578063c1292cc31161008c578063d0ebdbe711610066578063d0ebdbe71461031e578063d1058e5914610331578063e2bbb1581461033957600080fd5b8063c1292cc3146102c5578063c7446565146102ce578063ce0b6fd6146102d757600080fd5b8063b039ddf6116100bd578063b039ddf614610297578063bd2c0074146102aa578063be9a6555146102bd57600080fd5b8063a8bc58f214610225578063ac4afa381461022e57600080fd5b80633e7d15c01161012f578063497af9d011610114578063497af9d0146101f657806367a249f7146102095780637cc3ae8c1461021c57600080fd5b80633e7d15c0146101db578063441a3e70146101e357600080fd5b8063280df78511610160578063280df785146101ac5780632bcf161c146101b5578063379607f5146101c857600080fd5b80628934521461017b5780630407539914610197575b600080fd5b61018460095481565b6040519081526020015b60405180910390f35b6101aa6101a53660046114c7565b61034c565b005b610184600a5481565b6101846101c33660046114f5565b61041e565b6101aa6101d63660046114c7565b610452565b6101aa61058f565b6101aa6101f1366004611519565b610771565b6101aa610204366004611519565b610897565b6101aa6102173660046114c7565b61096a565b61018460075481565b61018460055481565b61026d61023c3660046114c7565b600f6020526000908152604090208054600182015460028301546003909301546001600160a01b0390921692909184565b604080516001600160a01b039095168552602085019390935291830152606082015260800161018e565b6101aa6102a536600461153b565b610ac8565b6101aa6102b8366004611570565b610c12565b6101aa610cf7565b610184600e5481565b61018460065481565b6103096102e536600461159c565b60106020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161018e565b6101aa61032c3660046114f5565b610ddb565b6101aa610ec5565b6101aa610347366004611519565b610fce565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561039f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c391906115c8565b6001600160a01b0316336001600160a01b0316146104195760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b600955565b600080805b600e5481101561044b576104378482611291565b61044190836115fb565b9150600101610423565b5092915050565b61045a61132f565b610462611372565b600061046e3383611291565b9050600081116104c05760405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d000000000000000000000000000000006044820152606401610410565b80600554116104d1576005546104d3565b805b90506104df33836113cc565b8060055410156104f357600060055561050b565b8060056000828254610505919061160e565b90915550505b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af115801561055c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105809190611621565b505061058c6001600055565b50565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060691906115c8565b6001600160a01b0316336001600160a01b0316146106575760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b6106956040518060400160405280600581526020017f546f6b656e00000000000000000000000000000000000000000000000000000081525061143c565b600280546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600981527f4c504d616e61676572000000000000000000000000000000000000000000000060208201526106f29061143c565b600380546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600881527f5472656173757279000000000000000000000000000000000000000000000000602082015261074f9061143c565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b61077961132f565b610781611372565b6000828152600f602090815260408083203384526010835281842086855290925290912080548311156107f65760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768206465706f73697465640000000000000000000000006044820152606401610410565b60028201805484900390558054839003815561081233856113cc565b815460405163a9059cbb60e01b8152336004820152602481018590526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610862573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108869190611621565b5050506108936001600055565b5050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090e91906115c8565b6001600160a01b0316336001600160a01b03161461095f5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b600c91909155600d55565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e191906115c8565b6001600160a01b0316336001600160a01b031614610a325760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610a89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aad9190611621565b508060056000828254610ac091906115fb565b909155505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3f91906115c8565b6001600160a01b0316336001600160a01b031614610b905760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b604080516080810182526001600160a01b0385811682526020808301868152600084860181815260608601888152600e80548452600f909552968220955186546001600160a01b03191695169490941785559051600185015591516002840155925160039092019190915581549190610c0883611643565b9190505550505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8991906115c8565b6001600160a01b0316336001600160a01b031614610cda5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b6000928352600f6020526040909220600181019190915560030155565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6e91906115c8565b6001600160a01b0316336001600160a01b031614610dbf5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b42600b8190556006819055600854610dd6916115fb565b600755565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5291906115c8565b6001600160a01b0316336001600160a01b031614610ea35760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b610ecd61132f565b610ed5611372565b33600060015b600e54811015610f18576000610ef18483611291565b90508015610f0f57610f0381846115fb565b9250610f0f84836113cc565b50600101610edb565b50806005541015610f325750600580546000909155610f4a565b8060056000828254610f44919061160e565b90915550505b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610f9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fbf9190611621565b505050610fcc6001600055565b565b610fd661132f565b6006544210158015610fe9575060075442105b6110355760405162461bcd60e51b815260206004820152601160248201527f67656e6573697320697320636c6f7365640000000000000000000000000000006044820152606401610410565b61103d611372565b6000828152600f60209081526040808320338452601083528184208685529092528220600382015491929091606490611076908661165c565b6110809190611673565b9050600061108e828661160e565b9050808460020160008282546110a491906115fb565b90915550508254819084906000906110bd9084906115fb565b909155506110cd905033876113cc565b83546040516323b872dd60e01b8152336004820152306024820152604481018790526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015611123573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111479190611621565b5081156112835760006064600c5484611160919061165c565b61116a9190611673565b905060006064600d548561117e919061165c565b6111889190611673565b86546004805460405163a9059cbb60e01b81526001600160a01b03918216928101929092526024820186905292935091169063a9059cbb906044016020604051808303816000875af11580156111e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112069190611621565b50855460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af115801561125b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127f9190611621565b5050505b505050506108936001600055565b6000818152600f602090815260408083206001600160a01b0386168452601083528184208585529092528220600282015415806112cd57508054155b156112dd57600092505050611329565b600181015460028301546112f290606461165c565b600a5460018501548454611306919061165c565b611310919061165c565b61131a9190611673565b611324919061160e565b925050505b92915050565b60026000540361136b576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b6000600b5442611382919061160e565b905080158061139357506007544210155b1561139b5750565b6000600954826113ab919061165c565b905080600a60008282546113bf91906115fb565b909155505042600b555050565b6000818152600f602090815260408083206001600160a01b038616845260108352818420858552909252909120600282015461140990606461165c565b600a546001840154835461141d919061165c565b611427919061165c565b6114319190611673565b600190910155505050565b6001546040517f358177730000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690633581777390611486908590600401611695565b602060405180830381865afa1580156114a3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132991906115c8565b6000602082840312156114d957600080fd5b5035919050565b6001600160a01b038116811461058c57600080fd5b60006020828403121561150757600080fd5b8135611512816114e0565b9392505050565b6000806040838503121561152c57600080fd5b50508035926020909101359150565b60008060006060848603121561155057600080fd5b833561155b816114e0565b95602085013595506040909401359392505050565b60008060006060848603121561158557600080fd5b505081359360208301359350604090920135919050565b600080604083850312156115af57600080fd5b82356115ba816114e0565b946020939093013593505050565b6000602082840312156115da57600080fd5b8151611512816114e0565b634e487b7160e01b600052601160045260246000fd5b80820180821115611329576113296115e5565b81810381811115611329576113296115e5565b60006020828403121561163357600080fd5b8151801515811461151257600080fd5b600060018201611655576116556115e5565b5060010190565b8082028115828204841417611329576113296115e5565b60008261169057634e487b7160e01b600052601260045260246000fd5b500490565b602081526000825180602084015260005b818110156116c357602081860181015160408684010152016116a6565b506000604082850101526040601f19601f8301168401019150509291505056fea264697066735822122073e6d21c758cb9a778e9fbdd6060d1afe564a21b11c10db6b7eef4ce7a8c52c164736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000cb5bb4518a06d9d5bfc6296b5ce6ec8060bb0386
-----Decoded View---------------
Arg [0] : _manager (address): 0xCB5bB4518A06d9D5BFc6296b5Ce6eC8060BB0386
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000cb5bb4518a06d9d5bfc6296b5ce6ec8060bb0386
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ 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.