Source Code
Overview
S Balance
Token Holdings
More Info
ContractCreator
Latest 9 from a total of 9 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim All | 22486060 | 24 hrs ago | IN | 0 S | 0.00010172 | ||||
Deposit | 22485843 | 24 hrs ago | IN | 0 S | 0.00023341 | ||||
Deposit | 22485624 | 24 hrs ago | IN | 0 S | 0.00027295 | ||||
Start | 22485515 | 24 hrs ago | IN | 0 S | 0.00010699 | ||||
Send Premint | 22485513 | 24 hrs ago | IN | 0 S | 0.00011342 | ||||
Create Pool | 22485480 | 24 hrs ago | IN | 0 S | 0.0001139 | ||||
Create Pool | 22485480 | 24 hrs ago | IN | 0 S | 0.00011391 | ||||
Create Pool | 22485478 | 24 hrs ago | IN | 0 S | 0.00009201 | ||||
Set All | 22484820 | 24 hrs ago | IN | 0 S | 0.00011802 |
Latest 13 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
22486060 | 24 hrs ago | 0 S | ||||
22485843 | 24 hrs ago | 0 S | ||||
22485624 | 24 hrs ago | 0 S | ||||
22485515 | 24 hrs ago | 0 S | ||||
22485513 | 24 hrs ago | 0 S | ||||
22485513 | 24 hrs ago | 0 S | ||||
22485480 | 24 hrs ago | 0 S | ||||
22485480 | 24 hrs ago | 0 S | ||||
22485478 | 24 hrs ago | 0 S | ||||
22484820 | 24 hrs ago | 0 S | ||||
22484820 | 24 hrs ago | 0 S | ||||
22484820 | 24 hrs ago | 0 S | ||||
22484820 | 24 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; uint256 pendingReward; } 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(); User storage user = userDetailsByPId[msg.sender][id]; uint256 _pending = _rewards(msg.sender, id); if (_pending > 0) { user.pendingReward += _pending; } Pool storage pool = pools[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(); User storage user = userDetailsByPId[msg.sender][id]; require(user.deposited >= amount, "Not enough deposited"); uint256 _pending = _rewards(msg.sender, id); if (_pending > 0) { user.pendingReward += _pending; } Pool storage pool = pools[id]; 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) + userDetailsByPId[msg.sender][id].pendingReward; userDetailsByPId[msg.sender][id].pendingReward = 0; 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) + userDetailsByPId[sender][i].pendingReward; if (add > 0) { userDetailsByPId[sender][i].pendingReward = 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"},{"internalType":"uint256","name":"pendingReward","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
608060405262015180600855670de0b6b3a76400006009556028600c55603c600d556001600e55348015603157600080fd5b506040516118d93803806118d9833981016040819052604e916077565b6001600081905580546001600160a01b0319166001600160a01b039290921691909117905560a5565b600060208284031215608857600080fd5b81516001600160a01b0381168114609e57600080fd5b9392505050565b611825806100b46000396000f3fe608060405234801561001057600080fd5b50600436106101765760003560e01c8063a8bc58f2116100d8578063c1292cc31161008c578063d0ebdbe711610066578063d0ebdbe71461032c578063d1058e591461033f578063e2bbb1581461034757600080fd5b8063c1292cc3146102c5578063c7446565146102ce578063ce0b6fd6146102d757600080fd5b8063b039ddf6116100bd578063b039ddf614610297578063bd2c0074146102aa578063be9a6555146102bd57600080fd5b8063a8bc58f214610225578063ac4afa381461022e57600080fd5b80633e7d15c01161012f578063497af9d011610114578063497af9d0146101f657806367a249f7146102095780637cc3ae8c1461021c57600080fd5b80633e7d15c0146101db578063441a3e70146101e357600080fd5b8063280df78511610160578063280df785146101ac5780632bcf161c146101b5578063379607f5146101c857600080fd5b80628934521461017b5780630407539914610197575b600080fd5b61018460095481565b6040519081526020015b60405180910390f35b6101aa6101a53660046115d3565b61035a565b005b610184600a5481565b6101846101c3366004611601565b61042c565b6101aa6101d63660046115d3565b610460565b6101aa6105e0565b6101aa6101f1366004611625565b6107c2565b6101aa610204366004611625565b61091b565b6101aa6102173660046115d3565b6109ee565b61018460075481565b61018460055481565b61026d61023c3660046115d3565b600f6020526000908152604090208054600182015460028301546003909301546001600160a01b0390921692909184565b604080516001600160a01b039095168552602085019390935291830152606082015260800161018e565b6101aa6102a5366004611647565b610b4c565b6101aa6102b836600461167c565b610c96565b6101aa610d7b565b610184600e5481565b61018460065481565b6103116102e53660046116a8565b601060209081526000928352604080842090915290825290208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161018e565b6101aa61033a366004611601565b610e5f565b6101aa610f49565b6101aa610355366004611625565b6110a8565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d191906116d4565b6001600160a01b0316336001600160a01b0316146104275760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b600955565b600080805b600e5481101561045957610445848261139d565b61044f9083611707565b9150600101610431565b5092915050565b61046861143b565b61047061147e565b336000818152601060209081526040808320858452909152812060020154909161049a908461139d565b6104a49190611707565b3360009081526010602090815260408083208684529091528120600201559050806105115760405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d00000000000000000000000000000000604482015260640161041e565b806005541161052257600554610524565b805b905061053033836114d8565b80600554101561054457600060055561055c565b8060056000828254610556919061171a565b90915550505b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156105ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d1919061172d565b50506105dd6001600055565b50565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610633573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065791906116d4565b6001600160a01b0316336001600160a01b0316146106a85760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b6106e66040518060400160405280600581526020017f546f6b656e000000000000000000000000000000000000000000000000000000815250611548565b600280546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600981527f4c504d616e616765720000000000000000000000000000000000000000000000602082015261074390611548565b600380546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600881527f547265617375727900000000000000000000000000000000000000000000000060208201526107a090611548565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6107ca61143b565b6107d261147e565b3360009081526010602090815260408083208584529091529020805482111561083d5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768206465706f7369746564000000000000000000000000604482015260640161041e565b6000610849338561139d565b9050801561086b57808260020160008282546108659190611707565b90915550505b6000848152600f6020526040902060028101805485900390558254849003835561089533866114d8565b805460405163a9059cbb60e01b8152336004820152602481018690526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610909919061172d565b505050506109176001600055565b5050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561096e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099291906116d4565b6001600160a01b0316336001600160a01b0316146109e35760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b600c91909155600d55565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6591906116d4565b6001600160a01b0316336001600160a01b031614610ab65760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610b0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b31919061172d565b508060056000828254610b449190611707565b909155505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc391906116d4565b6001600160a01b0316336001600160a01b031614610c145760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b604080516080810182526001600160a01b0385811682526020808301868152600084860181815260608601888152600e80548452600f909552968220955186546001600160a01b03191695169490941785559051600185015591516002840155925160039092019190915581549190610c8c8361174f565b9190505550505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ce9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0d91906116d4565b6001600160a01b0316336001600160a01b031614610d5e5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b6000928352600f6020526040909220600181019190915560030155565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610dce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df291906116d4565b6001600160a01b0316336001600160a01b031614610e435760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b42600b8190556006819055600854610e5a91611707565b600755565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610eb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed691906116d4565b6001600160a01b0316336001600160a01b031614610f275760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b610f5161143b565b610f5961147e565b33600060015b600e54811015610ff2576001600160a01b0383166000908152601060209081526040808320848452909152812060020154610f9a858461139d565b610fa49190611707565b90508015610fe9576001600160a01b0384166000908152601060209081526040808320858452909152812060020155610fdd8184611707565b9250610fe984836114d8565b50600101610f5f565b5080600554101561100c5750600580546000909155611024565b806005600082825461101e919061171a565b90915550505b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015611075573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611099919061172d565b5050506110a66001600055565b565b6110b061143b565b60065442101580156110c3575060075442105b61110f5760405162461bcd60e51b815260206004820152601160248201527f67656e6573697320697320636c6f736564000000000000000000000000000000604482015260640161041e565b61111761147e565b33600081815260106020908152604080832086845290915281209161113c908561139d565b9050801561115e57808260020160008282546111589190611707565b90915550505b6000848152600f6020526040812060038101549091906064906111819087611768565b61118b919061177f565b90506000611199828761171a565b9050808360020160008282546111af9190611707565b90915550508454819086906000906111c8908490611707565b909155506111d8905033886114d8565b82546040516323b872dd60e01b8152336004820152306024820152604481018890526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561122e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611252919061172d565b50811561138e5760006064600c548461126b9190611768565b611275919061177f565b905060006064600d54856112899190611768565b611293919061177f565b85546004805460405163a9059cbb60e01b81526001600160a01b03918216928101929092526024820186905292935091169063a9059cbb906044016020604051808303816000875af11580156112ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611311919061172d565b50845460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015611366573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138a919061172d565b5050505b50505050506109176001600055565b6000818152600f602090815260408083206001600160a01b0386168452601083528184208585529092528220600282015415806113d957508054155b156113e957600092505050611435565b600181015460028301546113fe906064611768565b600a54600185015484546114129190611768565b61141c9190611768565b611426919061177f565b611430919061171a565b925050505b92915050565b600260005403611477576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b6000600b544261148e919061171a565b905080158061149f57506007544210155b156114a75750565b6000600954826114b79190611768565b905080600a60008282546114cb9190611707565b909155505042600b555050565b6000818152600f602090815260408083206001600160a01b0386168452601083528184208585529092529091206002820154611515906064611768565b600a54600184015483546115299190611768565b6115339190611768565b61153d919061177f565b600190910155505050565b6001546040517f358177730000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906335817773906115929085906004016117a1565b602060405180830381865afa1580156115af573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143591906116d4565b6000602082840312156115e557600080fd5b5035919050565b6001600160a01b03811681146105dd57600080fd5b60006020828403121561161357600080fd5b813561161e816115ec565b9392505050565b6000806040838503121561163857600080fd5b50508035926020909101359150565b60008060006060848603121561165c57600080fd5b8335611667816115ec565b95602085013595506040909401359392505050565b60008060006060848603121561169157600080fd5b505081359360208301359350604090920135919050565b600080604083850312156116bb57600080fd5b82356116c6816115ec565b946020939093013593505050565b6000602082840312156116e657600080fd5b815161161e816115ec565b634e487b7160e01b600052601160045260246000fd5b80820180821115611435576114356116f1565b81810381811115611435576114356116f1565b60006020828403121561173f57600080fd5b8151801515811461161e57600080fd5b600060018201611761576117616116f1565b5060010190565b8082028115828204841417611435576114356116f1565b60008261179c57634e487b7160e01b600052601260045260246000fd5b500490565b602081526000825180602084015260005b818110156117cf57602081860181015160408684010152016117b2565b506000604082850101526040601f19601f8301168401019150509291505056fea264697066735822122065e3e38c18055278d10f645210ec0a857a0dbef20d1b3c49c52bdb430435110464736f6c634300081a0033000000000000000000000000844ba354b9ddc474acda287aed090e809d63cebd
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101765760003560e01c8063a8bc58f2116100d8578063c1292cc31161008c578063d0ebdbe711610066578063d0ebdbe71461032c578063d1058e591461033f578063e2bbb1581461034757600080fd5b8063c1292cc3146102c5578063c7446565146102ce578063ce0b6fd6146102d757600080fd5b8063b039ddf6116100bd578063b039ddf614610297578063bd2c0074146102aa578063be9a6555146102bd57600080fd5b8063a8bc58f214610225578063ac4afa381461022e57600080fd5b80633e7d15c01161012f578063497af9d011610114578063497af9d0146101f657806367a249f7146102095780637cc3ae8c1461021c57600080fd5b80633e7d15c0146101db578063441a3e70146101e357600080fd5b8063280df78511610160578063280df785146101ac5780632bcf161c146101b5578063379607f5146101c857600080fd5b80628934521461017b5780630407539914610197575b600080fd5b61018460095481565b6040519081526020015b60405180910390f35b6101aa6101a53660046115d3565b61035a565b005b610184600a5481565b6101846101c3366004611601565b61042c565b6101aa6101d63660046115d3565b610460565b6101aa6105e0565b6101aa6101f1366004611625565b6107c2565b6101aa610204366004611625565b61091b565b6101aa6102173660046115d3565b6109ee565b61018460075481565b61018460055481565b61026d61023c3660046115d3565b600f6020526000908152604090208054600182015460028301546003909301546001600160a01b0390921692909184565b604080516001600160a01b039095168552602085019390935291830152606082015260800161018e565b6101aa6102a5366004611647565b610b4c565b6101aa6102b836600461167c565b610c96565b6101aa610d7b565b610184600e5481565b61018460065481565b6103116102e53660046116a8565b601060209081526000928352604080842090915290825290208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161018e565b6101aa61033a366004611601565b610e5f565b6101aa610f49565b6101aa610355366004611625565b6110a8565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d191906116d4565b6001600160a01b0316336001600160a01b0316146104275760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b600955565b600080805b600e5481101561045957610445848261139d565b61044f9083611707565b9150600101610431565b5092915050565b61046861143b565b61047061147e565b336000818152601060209081526040808320858452909152812060020154909161049a908461139d565b6104a49190611707565b3360009081526010602090815260408083208684529091528120600201559050806105115760405162461bcd60e51b815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d00000000000000000000000000000000604482015260640161041e565b806005541161052257600554610524565b805b905061053033836114d8565b80600554101561054457600060055561055c565b8060056000828254610556919061171a565b90915550505b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156105ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d1919061172d565b50506105dd6001600055565b50565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610633573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065791906116d4565b6001600160a01b0316336001600160a01b0316146106a85760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b6106e66040518060400160405280600581526020017f546f6b656e000000000000000000000000000000000000000000000000000000815250611548565b600280546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600981527f4c504d616e616765720000000000000000000000000000000000000000000000602082015261074390611548565b600380546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600881527f547265617375727900000000000000000000000000000000000000000000000060208201526107a090611548565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6107ca61143b565b6107d261147e565b3360009081526010602090815260408083208584529091529020805482111561083d5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768206465706f7369746564000000000000000000000000604482015260640161041e565b6000610849338561139d565b9050801561086b57808260020160008282546108659190611707565b90915550505b6000848152600f6020526040902060028101805485900390558254849003835561089533866114d8565b805460405163a9059cbb60e01b8152336004820152602481018690526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610909919061172d565b505050506109176001600055565b5050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561096e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099291906116d4565b6001600160a01b0316336001600160a01b0316146109e35760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b600c91909155600d55565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6591906116d4565b6001600160a01b0316336001600160a01b031614610ab65760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610b0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b31919061172d565b508060056000828254610b449190611707565b909155505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc391906116d4565b6001600160a01b0316336001600160a01b031614610c145760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b604080516080810182526001600160a01b0385811682526020808301868152600084860181815260608601888152600e80548452600f909552968220955186546001600160a01b03191695169490941785559051600185015591516002840155925160039092019190915581549190610c8c8361174f565b9190505550505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ce9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0d91906116d4565b6001600160a01b0316336001600160a01b031614610d5e5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b6000928352600f6020526040909220600181019190915560030155565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610dce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df291906116d4565b6001600160a01b0316336001600160a01b031614610e435760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b42600b8190556006819055600854610e5a91611707565b600755565b600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610eb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed691906116d4565b6001600160a01b0316336001600160a01b031614610f275760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b604482015260640161041e565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b610f5161143b565b610f5961147e565b33600060015b600e54811015610ff2576001600160a01b0383166000908152601060209081526040808320848452909152812060020154610f9a858461139d565b610fa49190611707565b90508015610fe9576001600160a01b0384166000908152601060209081526040808320858452909152812060020155610fdd8184611707565b9250610fe984836114d8565b50600101610f5f565b5080600554101561100c5750600580546000909155611024565b806005600082825461101e919061171a565b90915550505b60025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015611075573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611099919061172d565b5050506110a66001600055565b565b6110b061143b565b60065442101580156110c3575060075442105b61110f5760405162461bcd60e51b815260206004820152601160248201527f67656e6573697320697320636c6f736564000000000000000000000000000000604482015260640161041e565b61111761147e565b33600081815260106020908152604080832086845290915281209161113c908561139d565b9050801561115e57808260020160008282546111589190611707565b90915550505b6000848152600f6020526040812060038101549091906064906111819087611768565b61118b919061177f565b90506000611199828761171a565b9050808360020160008282546111af9190611707565b90915550508454819086906000906111c8908490611707565b909155506111d8905033886114d8565b82546040516323b872dd60e01b8152336004820152306024820152604481018890526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561122e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611252919061172d565b50811561138e5760006064600c548461126b9190611768565b611275919061177f565b905060006064600d54856112899190611768565b611293919061177f565b85546004805460405163a9059cbb60e01b81526001600160a01b03918216928101929092526024820186905292935091169063a9059cbb906044016020604051808303816000875af11580156112ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611311919061172d565b50845460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015611366573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138a919061172d565b5050505b50505050506109176001600055565b6000818152600f602090815260408083206001600160a01b0386168452601083528184208585529092528220600282015415806113d957508054155b156113e957600092505050611435565b600181015460028301546113fe906064611768565b600a54600185015484546114129190611768565b61141c9190611768565b611426919061177f565b611430919061171a565b925050505b92915050565b600260005403611477576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b6000600b544261148e919061171a565b905080158061149f57506007544210155b156114a75750565b6000600954826114b79190611768565b905080600a60008282546114cb9190611707565b909155505042600b555050565b6000818152600f602090815260408083206001600160a01b0386168452601083528184208585529092529091206002820154611515906064611768565b600a54600184015483546115299190611768565b6115339190611768565b61153d919061177f565b600190910155505050565b6001546040517f358177730000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906335817773906115929085906004016117a1565b602060405180830381865afa1580156115af573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143591906116d4565b6000602082840312156115e557600080fd5b5035919050565b6001600160a01b03811681146105dd57600080fd5b60006020828403121561161357600080fd5b813561161e816115ec565b9392505050565b6000806040838503121561163857600080fd5b50508035926020909101359150565b60008060006060848603121561165c57600080fd5b8335611667816115ec565b95602085013595506040909401359392505050565b60008060006060848603121561169157600080fd5b505081359360208301359350604090920135919050565b600080604083850312156116bb57600080fd5b82356116c6816115ec565b946020939093013593505050565b6000602082840312156116e657600080fd5b815161161e816115ec565b634e487b7160e01b600052601160045260246000fd5b80820180821115611435576114356116f1565b81810381811115611435576114356116f1565b60006020828403121561173f57600080fd5b8151801515811461161e57600080fd5b600060018201611761576117616116f1565b5060010190565b8082028115828204841417611435576114356116f1565b60008261179c57634e487b7160e01b600052601260045260246000fd5b500490565b602081526000825180602084015260005b818110156117cf57602081860181015160408684010152016117b2565b506000604082850101526040601f19601f8301168401019150509291505056fea264697066735822122065e3e38c18055278d10f645210ec0a857a0dbef20d1b3c49c52bdb430435110464736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000844ba354b9ddc474acda287aed090e809d63cebd
-----Decoded View---------------
Arg [0] : _manager (address): 0x844Ba354B9DDc474acDa287AED090E809d63ceBd
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000844ba354b9ddc474acda287aed090e809d63cebd
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.