Source Code
Overview
S Balance
Token Holdings
More Info
ContractCreator
Latest 10 from a total of 10 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit | 20576648 | 7 days ago | IN | 0 S | 0.00035584 | ||||
Create Pool | 20576588 | 7 days ago | IN | 0 S | 0.00009201 | ||||
Claim | 20576071 | 7 days ago | IN | 0 S | 0.00008599 | ||||
Deposit | 20575898 | 7 days ago | IN | 0 S | 0.00048984 | ||||
Deposit | 20575808 | 7 days ago | IN | 0 S | 0.00025925 | ||||
Start | 20575654 | 7 days ago | IN | 0 S | 0.00010699 | ||||
Send Premint | 20575652 | 7 days ago | IN | 0 S | 0.00011342 | ||||
Create Pool | 20575617 | 7 days ago | IN | 0 S | 0.00011391 | ||||
Create Pool | 20575615 | 7 days ago | IN | 0 S | 0.00009201 | ||||
Set All | 20574869 | 7 days ago | IN | 0 S | 0.00011802 |
Latest 20 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20576648 | 7 days ago | 0 S | ||||
20576648 | 7 days ago | 0 S | ||||
20576648 | 7 days ago | 0 S | ||||
20576648 | 7 days ago | 0 S | ||||
20576588 | 7 days ago | 0 S | ||||
20576071 | 7 days ago | 0 S | ||||
20575898 | 7 days ago | 0 S | ||||
20575898 | 7 days ago | 0 S | ||||
20575898 | 7 days ago | 0 S | ||||
20575898 | 7 days ago | 0 S | ||||
20575808 | 7 days ago | 0 S | ||||
20575654 | 7 days ago | 0 S | ||||
20575652 | 7 days ago | 0 S | ||||
20575652 | 7 days ago | 0 S | ||||
20575617 | 7 days ago | 0 S | ||||
20575615 | 7 days ago | 0 S | ||||
20574869 | 7 days ago | 0 S | ||||
20574869 | 7 days ago | 0 S | ||||
20574869 | 7 days ago | 0 S | ||||
20574869 | 7 days 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 = 12 hours; 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(address(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 { address sender = msg.sender; uint256 sum = 0; for (uint256 i = 0; i < lastId; i++) { sum += _rewards(sender, i); } _updateDebt(msg.sender, 0); 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]; uint256 pending = _rewards(user, id); userDetails.rewardDebt = (userDetails.deposited * pool.poolShares * _accRewardsGlobal) / (100 * pool.amountDeposited) - pending; } function _rewards(address user, uint256 id) private view returns (uint256) { Pool storage pool = pools[id]; User storage userDetails = userDetailsByPId[user][id]; 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
608060405261a8c0600855670de0b6b3a76400006009556028600c55603c600d556001600e55348015603057600080fd5b5060405161182f38038061182f833981016040819052604d916076565b6001600081905580546001600160a01b0319166001600160a01b039290921691909117905560a4565b600060208284031215608757600080fd5b81516001600160a01b0381168114609d57600080fd5b9392505050565b61177c806100b36000396000f3fe608060405234801561001057600080fd5b50600436106101765760003560e01c8063a8bc58f2116100d8578063c1292cc31161008c578063d0ebdbe711610066578063d0ebdbe71461031e578063d1058e5914610331578063e2bbb1581461033957600080fd5b8063c1292cc3146102c5578063c7446565146102ce578063ce0b6fd6146102d757600080fd5b8063b039ddf6116100bd578063b039ddf614610297578063bd2c0074146102aa578063be9a6555146102bd57600080fd5b8063a8bc58f214610225578063ac4afa381461022e57600080fd5b80633e7d15c01161012f578063497af9d011610114578063497af9d0146101f657806367a249f7146102095780637cc3ae8c1461021c57600080fd5b80633e7d15c0146101db578063441a3e70146101e357600080fd5b8063280df78511610160578063280df785146101ac5780632bcf161c146101b5578063379607f5146101c857600080fd5b80628934521461017b5780630407539914610197575b600080fd5b61018460095481565b6040519081526020015b60405180910390f35b6101aa6101a536600461152a565b61034c565b005b610184600a5481565b6101846101c3366004611558565b61041e565b6101aa6101d636600461152a565b610452565b6101aa61058f565b6101aa6101f136600461157c565b610771565b6101aa61020436600461157c565b610897565b6101aa61021736600461152a565b61096a565b61018460075481565b61018460055481565b61026d61023c36600461152a565b600f6020526000908152604090208054600182015460028301546003909301546001600160a01b0390921692909184565b604080516001600160a01b039095168552602085019390935291830152606082015260800161018e565b6101aa6102a536600461159e565b610ac8565b6101aa6102b83660046115d3565b610c12565b6101aa610cf7565b610184600e5481565b61018460065481565b6103096102e53660046115ff565b60106020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161018e565b6101aa61032c366004611558565b610ddb565b6101aa610ec5565b6101aa61034736600461157c565b610fbb565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561039f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c3919061162b565b6001600160a01b0316336001600160a01b0316146104195760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b600955565b600080805b600e5481101561044b5761043784826112f7565b610441908361165e565b9150600101610423565b5092915050565b61045a611375565b6104626113b8565b600061046e33836112f7565b9050600081116104c05760405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d000000000000000000000000000000006044820152606401610410565b80600554116104d1576005546104d3565b805b90506104df3383611412565b8060055410156104f357600060055561050b565b80600560008282546105059190611671565b90915550505b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af115801561055c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105809190611684565b505061058c6001600055565b50565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610606919061162b565b6001600160a01b0316336001600160a01b0316146106575760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b6106956040518060400160405280600581526020017f546f6b656e00000000000000000000000000000000000000000000000000000081525061149f565b600280546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600981527f4c504d616e61676572000000000000000000000000000000000000000000000060208201526106f29061149f565b600380546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600881527f5472656173757279000000000000000000000000000000000000000000000000602082015261074f9061149f565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b610779611375565b6107816113b8565b6000828152600f602090815260408083203384526010835281842086855290925290912080548311156107f65760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768206465706f73697465640000000000000000000000006044820152606401610410565b6002820180548490039055805483900381556108123385611412565b815460405163a9059cbb60e01b8152336004820152602481018590526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610862573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108869190611684565b5050506108936001600055565b5050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090e919061162b565b6001600160a01b0316336001600160a01b03161461095f5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b600c91909155600d55565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e1919061162b565b6001600160a01b0316336001600160a01b031614610a325760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610a89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aad9190611684565b508060056000828254610ac0919061165e565b909155505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3f919061162b565b6001600160a01b0316336001600160a01b031614610b905760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b604080516080810182526001600160a01b0385811682526020808301868152600084860181815260608601888152600e80548452600f909552968220955186546001600160a01b03191695169490941785559051600185015591516002840155925160039092019190915581549190610c08836116a6565b9190505550505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c89919061162b565b6001600160a01b0316336001600160a01b031614610cda5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b6000928352600f6020526040909220600181019190915560030155565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6e919061162b565b6001600160a01b0316336001600160a01b031614610dbf5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b42600b8190556006819055600854610dd69161165e565b600755565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e52919061162b565b6001600160a01b0316336001600160a01b031614610ea35760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b610ecd611375565b336000805b600e54811015610efa57610ee683826112f7565b610ef0908361165e565b9150600101610ed2565b50610f06336000611412565b806005541015610f1f5750600580546000909155610f37565b8060056000828254610f319190611671565b90915550505b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610f88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fac9190611684565b505050610fb96001600055565b565b610fc3611375565b6006544210158015610fd6575060075442105b6110225760405162461bcd60e51b815260206004820152601160248201527f67656e6573697320697320636c6f7365640000000000000000000000000000006044820152606401610410565b61102a6113b8565b6000828152600f6020908152604080832033845260108352818420868552909252822060038201549192909160649061106390866116bf565b61106d91906116d6565b9050600061107b8286611671565b905080846002016000828254611091919061165e565b90915550508254819084906000906110aa90849061165e565b909155506110ba90503387611412565b83546040516323b872dd60e01b8152336004820152306024820152604481018790526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015611110573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111349190611684565b5081156112e95760006064600c548461114d91906116bf565b61115791906116d6565b905060006064600d548561116b91906116bf565b61117591906116d6565b86546004805460405163a9059cbb60e01b81526001600160a01b03918216928101929092526024820186905292935091169063a9059cbb906044016020604051808303816000875af11580156111cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f39190611684565b50855460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015611248573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126c9190611684565b5060035486546040517fe3412e3d0000000000000000000000000000000000000000000000000000000081526001600160a01b03918216600482015291169063e3412e3d90602401600060405180830381600087803b1580156112ce57600080fd5b505af11580156112e2573d6000803e3d6000fd5b5050505050505b505050506108936001600055565b6000818152600f602090815260408083206001600160a01b0386168452601083528184208585529092528220600181015460028301546113389060646116bf565b600a546001850154845461134c91906116bf565b61135691906116bf565b61136091906116d6565b61136a9190611671565b925050505b92915050565b6002600054036113b1576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b6000600b54426113c89190611671565b90508015806113d957506007544210155b156113e15750565b6000600954826113f191906116bf565b905080600a6000828254611405919061165e565b909155505042600b555050565b6000818152600f602090815260408083206001600160a01b0386168452601083528184208585529092528220909161144a85856112f7565b9050808360020154606461145e91906116bf565b600a546001860154855461147291906116bf565b61147c91906116bf565b61148691906116d6565b6114909190611671565b82600101819055505050505050565b6001546040517f358177730000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906335817773906114e99085906004016116f8565b602060405180830381865afa158015611506573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136f919061162b565b60006020828403121561153c57600080fd5b5035919050565b6001600160a01b038116811461058c57600080fd5b60006020828403121561156a57600080fd5b813561157581611543565b9392505050565b6000806040838503121561158f57600080fd5b50508035926020909101359150565b6000806000606084860312156115b357600080fd5b83356115be81611543565b95602085013595506040909401359392505050565b6000806000606084860312156115e857600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561161257600080fd5b823561161d81611543565b946020939093013593505050565b60006020828403121561163d57600080fd5b815161157581611543565b634e487b7160e01b600052601160045260246000fd5b8082018082111561136f5761136f611648565b8181038181111561136f5761136f611648565b60006020828403121561169657600080fd5b8151801515811461157557600080fd5b6000600182016116b8576116b8611648565b5060010190565b808202811582820484141761136f5761136f611648565b6000826116f357634e487b7160e01b600052601260045260246000fd5b500490565b602081526000825180602084015260005b818110156117265760208186018101516040868401015201611709565b506000604082850101526040601f19601f8301168401019150509291505056fea2646970667358221220cd6436ec65367cba62312805f135d14e3269b9f4d2729599245de9a13c64d4ac64736f6c634300081a003300000000000000000000000070bdcee534b82d36ee4ab417433a24b0b03aa637
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101765760003560e01c8063a8bc58f2116100d8578063c1292cc31161008c578063d0ebdbe711610066578063d0ebdbe71461031e578063d1058e5914610331578063e2bbb1581461033957600080fd5b8063c1292cc3146102c5578063c7446565146102ce578063ce0b6fd6146102d757600080fd5b8063b039ddf6116100bd578063b039ddf614610297578063bd2c0074146102aa578063be9a6555146102bd57600080fd5b8063a8bc58f214610225578063ac4afa381461022e57600080fd5b80633e7d15c01161012f578063497af9d011610114578063497af9d0146101f657806367a249f7146102095780637cc3ae8c1461021c57600080fd5b80633e7d15c0146101db578063441a3e70146101e357600080fd5b8063280df78511610160578063280df785146101ac5780632bcf161c146101b5578063379607f5146101c857600080fd5b80628934521461017b5780630407539914610197575b600080fd5b61018460095481565b6040519081526020015b60405180910390f35b6101aa6101a536600461152a565b61034c565b005b610184600a5481565b6101846101c3366004611558565b61041e565b6101aa6101d636600461152a565b610452565b6101aa61058f565b6101aa6101f136600461157c565b610771565b6101aa61020436600461157c565b610897565b6101aa61021736600461152a565b61096a565b61018460075481565b61018460055481565b61026d61023c36600461152a565b600f6020526000908152604090208054600182015460028301546003909301546001600160a01b0390921692909184565b604080516001600160a01b039095168552602085019390935291830152606082015260800161018e565b6101aa6102a536600461159e565b610ac8565b6101aa6102b83660046115d3565b610c12565b6101aa610cf7565b610184600e5481565b61018460065481565b6103096102e53660046115ff565b60106020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161018e565b6101aa61032c366004611558565b610ddb565b6101aa610ec5565b6101aa61034736600461157c565b610fbb565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561039f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c3919061162b565b6001600160a01b0316336001600160a01b0316146104195760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b600955565b600080805b600e5481101561044b5761043784826112f7565b610441908361165e565b9150600101610423565b5092915050565b61045a611375565b6104626113b8565b600061046e33836112f7565b9050600081116104c05760405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d000000000000000000000000000000006044820152606401610410565b80600554116104d1576005546104d3565b805b90506104df3383611412565b8060055410156104f357600060055561050b565b80600560008282546105059190611671565b90915550505b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af115801561055c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105809190611684565b505061058c6001600055565b50565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610606919061162b565b6001600160a01b0316336001600160a01b0316146106575760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b6106956040518060400160405280600581526020017f546f6b656e00000000000000000000000000000000000000000000000000000081525061149f565b600280546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600981527f4c504d616e61676572000000000000000000000000000000000000000000000060208201526106f29061149f565b600380546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600881527f5472656173757279000000000000000000000000000000000000000000000000602082015261074f9061149f565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b610779611375565b6107816113b8565b6000828152600f602090815260408083203384526010835281842086855290925290912080548311156107f65760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768206465706f73697465640000000000000000000000006044820152606401610410565b6002820180548490039055805483900381556108123385611412565b815460405163a9059cbb60e01b8152336004820152602481018590526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610862573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108869190611684565b5050506108936001600055565b5050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090e919061162b565b6001600160a01b0316336001600160a01b03161461095f5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b600c91909155600d55565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e1919061162b565b6001600160a01b0316336001600160a01b031614610a325760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610a89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aad9190611684565b508060056000828254610ac0919061165e565b909155505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3f919061162b565b6001600160a01b0316336001600160a01b031614610b905760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b604080516080810182526001600160a01b0385811682526020808301868152600084860181815260608601888152600e80548452600f909552968220955186546001600160a01b03191695169490941785559051600185015591516002840155925160039092019190915581549190610c08836116a6565b9190505550505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c89919061162b565b6001600160a01b0316336001600160a01b031614610cda5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b6000928352600f6020526040909220600181019190915560030155565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6e919061162b565b6001600160a01b0316336001600160a01b031614610dbf5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b42600b8190556006819055600854610dd69161165e565b600755565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e52919061162b565b6001600160a01b0316336001600160a01b031614610ea35760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b6044820152606401610410565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b610ecd611375565b336000805b600e54811015610efa57610ee683826112f7565b610ef0908361165e565b9150600101610ed2565b50610f06336000611412565b806005541015610f1f5750600580546000909155610f37565b8060056000828254610f319190611671565b90915550505b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610f88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fac9190611684565b505050610fb96001600055565b565b610fc3611375565b6006544210158015610fd6575060075442105b6110225760405162461bcd60e51b815260206004820152601160248201527f67656e6573697320697320636c6f7365640000000000000000000000000000006044820152606401610410565b61102a6113b8565b6000828152600f6020908152604080832033845260108352818420868552909252822060038201549192909160649061106390866116bf565b61106d91906116d6565b9050600061107b8286611671565b905080846002016000828254611091919061165e565b90915550508254819084906000906110aa90849061165e565b909155506110ba90503387611412565b83546040516323b872dd60e01b8152336004820152306024820152604481018790526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015611110573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111349190611684565b5081156112e95760006064600c548461114d91906116bf565b61115791906116d6565b905060006064600d548561116b91906116bf565b61117591906116d6565b86546004805460405163a9059cbb60e01b81526001600160a01b03918216928101929092526024820186905292935091169063a9059cbb906044016020604051808303816000875af11580156111cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f39190611684565b50855460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015611248573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126c9190611684565b5060035486546040517fe3412e3d0000000000000000000000000000000000000000000000000000000081526001600160a01b03918216600482015291169063e3412e3d90602401600060405180830381600087803b1580156112ce57600080fd5b505af11580156112e2573d6000803e3d6000fd5b5050505050505b505050506108936001600055565b6000818152600f602090815260408083206001600160a01b0386168452601083528184208585529092528220600181015460028301546113389060646116bf565b600a546001850154845461134c91906116bf565b61135691906116bf565b61136091906116d6565b61136a9190611671565b925050505b92915050565b6002600054036113b1576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b6000600b54426113c89190611671565b90508015806113d957506007544210155b156113e15750565b6000600954826113f191906116bf565b905080600a6000828254611405919061165e565b909155505042600b555050565b6000818152600f602090815260408083206001600160a01b0386168452601083528184208585529092528220909161144a85856112f7565b9050808360020154606461145e91906116bf565b600a546001860154855461147291906116bf565b61147c91906116bf565b61148691906116d6565b6114909190611671565b82600101819055505050505050565b6001546040517f358177730000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906335817773906114e99085906004016116f8565b602060405180830381865afa158015611506573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136f919061162b565b60006020828403121561153c57600080fd5b5035919050565b6001600160a01b038116811461058c57600080fd5b60006020828403121561156a57600080fd5b813561157581611543565b9392505050565b6000806040838503121561158f57600080fd5b50508035926020909101359150565b6000806000606084860312156115b357600080fd5b83356115be81611543565b95602085013595506040909401359392505050565b6000806000606084860312156115e857600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561161257600080fd5b823561161d81611543565b946020939093013593505050565b60006020828403121561163d57600080fd5b815161157581611543565b634e487b7160e01b600052601160045260246000fd5b8082018082111561136f5761136f611648565b8181038181111561136f5761136f611648565b60006020828403121561169657600080fd5b8151801515811461157557600080fd5b6000600182016116b8576116b8611648565b5060010190565b808202811582820484141761136f5761136f611648565b6000826116f357634e487b7160e01b600052601260045260246000fd5b500490565b602081526000825180602084015260005b818110156117265760208186018101516040868401015201611709565b506000604082850101526040601f19601f8301168401019150509291505056fea2646970667358221220cd6436ec65367cba62312805f135d14e3269b9f4d2729599245de9a13c64d4ac64736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000070bdcee534b82d36ee4ab417433a24b0b03aa637
-----Decoded View---------------
Arg [0] : _manager (address): 0x70bDcEe534b82d36ee4Ab417433a24b0B03aa637
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000070bdcee534b82d36ee4ab417433a24b0b03aa637
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.