More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,433 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 17997294 | 498 days ago | IN | 0 ETH | 0.0012245 | ||||
Withdraw | 17240810 | 605 days ago | IN | 0 ETH | 0.00729389 | ||||
Withdraw | 14818563 | 960 days ago | IN | 0 ETH | 0.00055804 | ||||
Withdraw | 14818563 | 960 days ago | IN | 0 ETH | 0.00146853 | ||||
Withdraw | 14417729 | 1023 days ago | IN | 0 ETH | 0.00345962 | ||||
Withdraw | 13979661 | 1091 days ago | IN | 0 ETH | 0.01582877 | ||||
Withdraw | 13961506 | 1094 days ago | IN | 0 ETH | 0.00523546 | ||||
Withdraw | 13959966 | 1094 days ago | IN | 0 ETH | 0.0075246 | ||||
Withdraw | 13959343 | 1094 days ago | IN | 0 ETH | 0.01338305 | ||||
Withdraw | 13958894 | 1094 days ago | IN | 0 ETH | 0.01017091 | ||||
Withdraw | 13953776 | 1095 days ago | IN | 0 ETH | 0.01744249 | ||||
Withdraw | 13945116 | 1096 days ago | IN | 0 ETH | 0.00730945 | ||||
Withdraw | 13931930 | 1098 days ago | IN | 0 ETH | 0.00582493 | ||||
Withdraw | 13923183 | 1100 days ago | IN | 0 ETH | 0.00848302 | ||||
Withdraw | 13918973 | 1100 days ago | IN | 0 ETH | 0.00847776 | ||||
Withdraw | 13916051 | 1101 days ago | IN | 0 ETH | 0.00734597 | ||||
Withdraw | 13915879 | 1101 days ago | IN | 0 ETH | 0.00729547 | ||||
Withdraw | 13915372 | 1101 days ago | IN | 0 ETH | 0.00499587 | ||||
Withdraw | 13914070 | 1101 days ago | IN | 0 ETH | 0.00915826 | ||||
Withdraw | 13914060 | 1101 days ago | IN | 0 ETH | 0.00903445 | ||||
Withdraw | 13913946 | 1101 days ago | IN | 0 ETH | 0.01220469 | ||||
Withdraw | 13912888 | 1101 days ago | IN | 0 ETH | 0.00612442 | ||||
Withdraw | 13912047 | 1101 days ago | IN | 0 ETH | 0.00865734 | ||||
Withdraw | 13909991 | 1102 days ago | IN | 0 ETH | 0.01238251 | ||||
Withdraw | 13870812 | 1108 days ago | IN | 0 ETH | 0.00406548 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
LiquidBoardroom
Compiler Version
v0.6.6+commit.6c089d02
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "./interfaces/IVotingEscrow.sol"; import "./Boardroom.sol"; /// Boardroom distributes token emission among shareholders that stake Klon and lock Klon in veToken contract LiquidBoardroom is Boardroom { /// Address of veToken IVotingEscrow public veToken; /// Creates new Boardroom /// @param _stakingToken address of the base token /// @param _tokenManager address of the TokenManager /// @param _emissionManager address of the EmissionManager /// @param _start start of the boardroom date constructor( address _stakingToken, address _tokenManager, address _emissionManager, uint256 _start ) public Boardroom(_stakingToken, _tokenManager, _emissionManager, _start) {} /// Update veToken /// @param _veToken new token address function setVeToken(address _veToken) public onlyOwner { veToken = IVotingEscrow(_veToken); emit VeTokenChanged(msg.sender, _veToken); } /// Shows the balance of the virtual token that participates in reward calculation /// @param owner the owner of the share tokens function shareTokenBalance(address owner) public view override returns (uint256) { return stakingTokenBalances[owner].add(veToken.locked__balance(owner)); } /// Shows the supply of the virtual token that participates in reward calculation function shareTokenSupply() public view override returns (uint256) { return stakingTokenSupply.add(veToken.supply()); } event VeTokenChanged(address indexed operator, address newVeToken); }
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// Voting escrow interface interface IVotingEscrow is IERC20 { function locked__balance(address _addr) external view returns (uint256); function supply() external view returns (uint256); function withdraw() external; function deposit_for(address _addr, uint256 _value) external; function create_lock(uint256 _value, uint256 _unlock_time) external; function increase_amount(uint256 _value) external; function increase_unlock_time(uint256 _unlock_time) external; }
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/math/Math.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./time/Timeboundable.sol"; import "./SyntheticToken.sol"; import "./interfaces/ITokenManager.sol"; import "./interfaces/IBoardroom.sol"; /// Boardroom distributes token emission among shareholders contract Boardroom is IBoardroom, ReentrancyGuard, Timeboundable, Operatable { using SafeMath for uint256; /// Added each time reward to the Boardroom is added struct PoolRewardSnapshot { /// when snapshost was made uint256 timestamp; /// how much reward was added at this snapshot uint256 addedSyntheticReward; /// accumulated reward per share unit (10^18 of reward token) uint256 accruedRewardPerShareUnit; } /// Accumulated personal rewards available for claiming struct PersonRewardAccrual { /// Last accrual time represented by snapshotId uint256 lastAccrualSnaphotId; /// Accrued and ready for distribution reward uint256 accruedReward; } /// A set of PoolRewardSnapshots for every synthetic token mapping(address => PoolRewardSnapshot[]) public poolRewardSnapshots; /// A set of records of personal accumulated income. /// The first key is token, the second is holder address. mapping(address => mapping(address => PersonRewardAccrual)) public personRewardAccruals; /// Pause bool public pause; /// one unit of staking token (e.g. # of wei in eth) uint256 public immutable stakingUnit; /// Staking token. Both base and boost token yield reward token which ultimately participates in rewards distribution. SyntheticToken public stakingToken; /// TokenManager ref ITokenManager public tokenManager; /// EmissionManager ref address public emissionManager; /// Staking token supply in the Boardroom uint256 public stakingTokenSupply; /// Staking token balances in the Boardroom mapping(address => uint256) public stakingTokenBalances; /// Creates new Boardroom /// @param _stakingToken address of the base token. Should have 18 decimals. /// @param _tokenManager address of the TokenManager /// @param _emissionManager address of the EmissionManager /// @param _start start of the boardroom date constructor( address _stakingToken, address _tokenManager, address _emissionManager, uint256 _start ) public Timeboundable(_start, 0) { stakingToken = SyntheticToken(_stakingToken); stakingUnit = uint256(10)**18; tokenManager = ITokenManager(_tokenManager); emissionManager = _emissionManager; } // ------- Modifiers ---------- /// Checks if pause is set modifier unpaused() { require(!pause, "Boardroom operations are paused"); _; } // ------- Public ---------- /// Funds available for user to withdraw /// @param syntheticTokenAddress the token we're looking up balance for /// @param owner the owner of the token function availableForWithdraw(address syntheticTokenAddress, address owner) public view returns (uint256) { PersonRewardAccrual storage accrual = personRewardAccruals[syntheticTokenAddress][owner]; PoolRewardSnapshot[] storage tokenSnapshots = poolRewardSnapshots[syntheticTokenAddress]; if (tokenSnapshots.length == 0) { return 0; } PoolRewardSnapshot storage lastSnapshot = tokenSnapshots[tokenSnapshots.length.sub(1)]; uint256 lastOverallRPSU = lastSnapshot.accruedRewardPerShareUnit; PoolRewardSnapshot storage lastAccrualSnapshot = tokenSnapshots[accrual.lastAccrualSnaphotId]; uint256 lastUserAccrualRPSU = lastAccrualSnapshot.accruedRewardPerShareUnit; uint256 deltaRPSU = lastOverallRPSU.sub(lastUserAccrualRPSU); uint256 addedUserReward = shareTokenBalance(owner).mul(deltaRPSU).div(stakingUnit); return accrual.accruedReward.add(addedUserReward); } /// Stake tokens into Boardroom /// @param to the receiver of the token /// @param amount amount of staking token function stake(address to, uint256 amount) public nonReentrant inTimeBounds unpaused { require((amount > 0), "Boardroom: amount should be > 0"); updateAccruals(msg.sender); stakingTokenBalances[to] = stakingTokenBalances[to].add(amount); stakingTokenSupply = stakingTokenSupply.add(amount); _doStakeTransfer(msg.sender, to, amount); emit Staked(msg.sender, to, amount); } /// Withdraw tokens from Boardroom /// @param to the receiver of the token /// @param amount amount of base token function withdraw(address to, uint256 amount) public nonReentrant { require((amount > 0), "Boardroom: amount should be > 0"); updateAccruals(msg.sender); stakingTokenBalances[msg.sender] = stakingTokenBalances[msg.sender].sub( amount ); stakingTokenSupply = stakingTokenSupply.sub(amount); _doWithdrawTransfer(msg.sender, to, amount); emit Withdrawn(msg.sender, to, amount); } /// Called inside `stake` method after updating internal balances /// @param from the owner of the staking tokens /// @param amount amount to stake function _doStakeTransfer( address from, address, uint256 amount ) internal virtual { stakingToken.transferFrom(from, address(this), amount); } /// Called inside `withdraw` method after updating internal balances /// @param to the receiver of the staking tokens /// @param amount amount to unstake function _doWithdrawTransfer( address, address to, uint256 amount ) internal virtual { stakingToken.transfer(to, amount); } /// Shows the balance of the virtual token that participates in reward calculation /// @param owner the owner of the share tokens function shareTokenBalance(address owner) public view virtual returns (uint256) { return stakingTokenBalances[owner]; } /// Shows the supply of the virtual token that participates in reward calculation function shareTokenSupply() public view virtual returns (uint256) { return stakingTokenSupply; } /// Update accrued rewards for all tokens of sender /// @param owner address to update accruals function updateAccruals(address owner) public unpaused { address[] memory tokens = tokenManager.allTokens(); for (uint256 i = 0; i < tokens.length; i++) { _updateAccrual(tokens[i], owner); } } /// Transfer all rewards to sender /// @param to reward receiver function claimRewards(address to) public nonReentrant unpaused { updateAccruals(msg.sender); address[] memory tokens = tokenManager.allTokens(); for (uint256 i = 0; i < tokens.length; i++) { _claimReward(to, tokens[i]); } } // ------- Public, EmissionManager ---------- /// Notify Boardroom about new incoming reward for token /// @param token Rewards denominated in this token /// @param amount The amount of rewards function notifyTransfer(address token, uint256 amount) external override { require( msg.sender == address(emissionManager), "Boardroom: can only be called by EmissionManager" ); uint256 shareSupply = shareTokenSupply(); require( shareSupply > 0, "Boardroom: Cannot receive incoming reward when token balance is 0" ); PoolRewardSnapshot[] storage tokenSnapshots = poolRewardSnapshots[token]; PoolRewardSnapshot storage lastSnapshot = tokenSnapshots[tokenSnapshots.length - 1]; uint256 deltaRPSU = amount.mul(stakingUnit).div(shareSupply); tokenSnapshots.push( PoolRewardSnapshot({ timestamp: block.timestamp, addedSyntheticReward: amount, accruedRewardPerShareUnit: lastSnapshot .accruedRewardPerShareUnit .add(deltaRPSU) }) ); emit IncomingBoardroomReward(token, msg.sender, amount); } // ------- Public, Owner (timelock) ---------- /// Updates TokenManager /// @param _tokenManager new TokenManager function setTokenManager(address _tokenManager) public onlyOwner { tokenManager = ITokenManager(_tokenManager); emit UpdatedTokenManager(msg.sender, _tokenManager); } /// Updates EmissionManager /// @param _emissionManager new EmissionManager function setEmissionManager(address _emissionManager) public onlyOwner { emissionManager = _emissionManager; emit UpdatedEmissionManager(msg.sender, _emissionManager); } // ------- Public, Operator (multisig) ---------- /// Set pause /// @param _pause pause value function setPause(bool _pause) public onlyOperator { pause = _pause; emit UpdatedPause(msg.sender, _pause); } // ------- Internal ---------- function _claimReward(address to, address syntheticTokenAddress) internal { uint256 reward = personRewardAccruals[syntheticTokenAddress][msg.sender] .accruedReward; if (reward > 0) { personRewardAccruals[syntheticTokenAddress][msg.sender] .accruedReward = 0; SyntheticToken token = SyntheticToken(syntheticTokenAddress); token.transfer(to, reward); emit RewardPaid(syntheticTokenAddress, msg.sender, to, reward); } } function _updateAccrual(address syntheticTokenAddress, address owner) internal { PersonRewardAccrual storage accrual = personRewardAccruals[syntheticTokenAddress][owner]; PoolRewardSnapshot[] storage tokenSnapshots = poolRewardSnapshots[syntheticTokenAddress]; if (tokenSnapshots.length == 0) { tokenSnapshots.push( PoolRewardSnapshot({ timestamp: block.timestamp, addedSyntheticReward: 0, accruedRewardPerShareUnit: 0 }) ); } if (accrual.lastAccrualSnaphotId == tokenSnapshots.length - 1) { return; } PoolRewardSnapshot storage lastSnapshot = tokenSnapshots[tokenSnapshots.length - 1]; uint256 lastOverallRPSU = lastSnapshot.accruedRewardPerShareUnit; PoolRewardSnapshot storage lastAccrualSnapshot = tokenSnapshots[accrual.lastAccrualSnaphotId]; uint256 lastUserAccrualRPSU = lastAccrualSnapshot.accruedRewardPerShareUnit; uint256 deltaRPSU = lastOverallRPSU.sub(lastUserAccrualRPSU); uint256 addedUserReward = shareTokenBalance(owner).mul(deltaRPSU).div(stakingUnit); accrual.lastAccrualSnaphotId = tokenSnapshots.length - 1; accrual.accruedReward = accrual.accruedReward.add(addedUserReward); emit RewardAccrued( syntheticTokenAddress, owner, addedUserReward, accrual.accruedReward ); } // ------- Events ---------- event RewardAccrued( address syntheticTokenAddress, address to, uint256 incrementalReward, uint256 totalReward ); event RewardPaid( address indexed syntheticTokenAddress, address indexed from, address indexed to, uint256 reward ); event IncomingBoardroomReward( address indexed token, address indexed from, uint256 amount ); event Staked(address indexed from, address indexed to, uint256 amount); event Withdrawn(address indexed from, address indexed to, uint256 amount); event UpdatedPause(address indexed operator, bool pause); event UpdatedTokenManager( address indexed operator, address newTokenManager ); event UpdatedEmissionManager( address indexed operator, address newEmissionManager ); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; /// Checks time bounds for contract abstract contract Timeboundable { uint256 public immutable start; uint256 public immutable finish; /// @param _start The block timestamp to start from (in secs). Use 0 for unbounded start. /// @param _finish The block timestamp to finish in (in secs). Use 0 for unbounded finish. constructor(uint256 _start, uint256 _finish) internal { require( (_start != 0) || (_finish != 0), "Timebound: either start or finish must be nonzero" ); require( (_finish == 0) || (_finish > _start), "Timebound: finish must be zero or greater than start" ); uint256 s = _start; if (s == 0) { s = block.timestamp; } uint256 f = _finish; if (f == 0) { f = uint256(-1); } start = s; finish = f; } /// Checks if timebounds are satisfied modifier inTimeBounds() { require(block.timestamp >= start, "Timeboundable: Not started yet"); require(block.timestamp <= finish, "Timeboundable: Already finished"); _; } }
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol"; import "./access/Operatable.sol"; /// @title Synthetic token for the Klondike platform contract SyntheticToken is ERC20Burnable, Operatable { /// Creates a new synthetic token /// @param _name Name of the token /// @param _symbol Ticker for the token /// @param _decimals Number of decimals constructor( string memory _name, string memory _symbol, uint8 _decimals ) public ERC20(_name, _symbol) { _setupDecimals(_decimals); } /// Mints tokens to the recepient /// @param recipient The address of recipient /// @param amount The amount of tokens to mint function mint(address recipient, uint256 amount) public onlyOperator returns (bool) { _mint(recipient, amount); } /// Burns token from the caller /// @param amount The amount of tokens to burn function burn(uint256 amount) public override onlyOperator { super.burn(amount); } /// Burns token from address /// @param account The account to burn from /// @param amount The amount of tokens to burn /// @dev The allowance for sender in address account must be /// strictly >= amount. Otherwise the function call will fail. function burnFrom(address account, uint256 amount) public override onlyOperator { super.burnFrom(account, amount); } }
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "./ISmelter.sol"; /// Token manager as seen by other managers interface ITokenManager is ISmelter { /// A set of synthetic tokens under management /// @dev Deleted tokens are still present in the array but with address(0) function allTokens() external view returns (address[] memory); /// Checks if the token is managed by Token Manager /// @param syntheticTokenAddress The address of the synthetic token /// @return True if token is managed function isManagedToken(address syntheticTokenAddress) external view returns (bool); /// Address of the underlying token /// @param syntheticTokenAddress The address of the synthetic token function underlyingToken(address syntheticTokenAddress) external view returns (address); /// Average price of the synthetic token according to price oracle /// @param syntheticTokenAddress The address of the synthetic token /// @param syntheticTokenAmount The amount to be priced /// @return The equivalent amount of the underlying token required to buy syntheticTokenAmount (average) /// @dev Fails if the token is not managed function averagePrice( address syntheticTokenAddress, uint256 syntheticTokenAmount ) external view returns (uint256); /// Current price of the synthetic token according to Uniswap /// @param syntheticTokenAddress The address of the synthetic token /// @param syntheticTokenAmount The amount to be priced /// @return The equivalent amount of the underlying token required to buy syntheticTokenAmount /// @dev Fails if the token is not managed function currentPrice( address syntheticTokenAddress, uint256 syntheticTokenAmount ) external view returns (uint256); /// Updates Oracle for the synthetic asset /// @param syntheticTokenAddress The address of the synthetic token function updateOracle(address syntheticTokenAddress) external; /// Get one synthetic unit /// @param syntheticTokenAddress The address of the synthetic token /// @return one unit of the synthetic asset function oneSyntheticUnit(address syntheticTokenAddress) external view returns (uint256); /// Get one underlying unit /// @param syntheticTokenAddress The address of the synthetic token /// @return one unit of the underlying asset function oneUnderlyingUnit(address syntheticTokenAddress) external view returns (uint256); }
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; /// Boardroom as seen by others interface IBoardroom { /// Notify Boardroom about new incoming reward for token /// @param token Rewards denominated in this token /// @param amount The amount of rewards function notifyTransfer(address token, uint256 amount) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../GSN/Context.sol"; import "./ERC20.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { using SafeMath for uint256; /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); } }
// SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/access/Ownable.sol"; /// Introduces `Operator` role that can be changed only by Owner. abstract contract Operatable is Ownable { address public operator; constructor() internal { operator = msg.sender; } modifier onlyOperator() { require(msg.sender == operator, "Only operator can call this method"); _; } /// Set new operator /// @param newOperator New operator to be set /// @dev Only owner is allowed to call this method. function transferOperator(address newOperator) public onlyOwner { emit OperatorTransferred(operator, newOperator); operator = newOperator; } event OperatorTransferred( address indexed previousOperator, address indexed newOperator ); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../GSN/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../GSN/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; /// Smelter can mint and burn tokens interface ISmelter { /// Burn SyntheticToken /// @param syntheticTokenAddress The address of the synthetic token /// @param owner Owner of the tokens to burn /// @param amount Amount to burn function burnSyntheticFrom( address syntheticTokenAddress, address owner, uint256 amount ) external; /// Mints synthetic token /// @param syntheticTokenAddress The address of the synthetic token /// @param receiver Address to receive minted token /// @param amount Amount to mint function mintSynthetic( address syntheticTokenAddress, address receiver, uint256 amount ) external; /// Check if address is token admin /// @param admin - address to check function isTokenAdmin(address admin) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 999999 }, "evmVersion": "istanbul", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_tokenManager","type":"address"},{"internalType":"address","name":"_emissionManager","type":"address"},{"internalType":"uint256","name":"_start","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"IncomingBoardroomReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"syntheticTokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"incrementalReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalReward","type":"uint256"}],"name":"RewardAccrued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"syntheticTokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"newEmissionManager","type":"address"}],"name":"UpdatedEmissionManager","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"pause","type":"bool"}],"name":"UpdatedPause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"newTokenManager","type":"address"}],"name":"UpdatedTokenManager","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"newVeToken","type":"address"}],"name":"VeTokenChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"syntheticTokenAddress","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"availableForWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emissionManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"notifyTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"personRewardAccruals","outputs":[{"internalType":"uint256","name":"lastAccrualSnaphotId","type":"uint256"},{"internalType":"uint256","name":"accruedReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolRewardSnapshots","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"addedSyntheticReward","type":"uint256"},{"internalType":"uint256","name":"accruedRewardPerShareUnit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_emissionManager","type":"address"}],"name":"setEmissionManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenManager","type":"address"}],"name":"setTokenManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_veToken","type":"address"}],"name":"setVeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"shareTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shareTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract SyntheticToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakingTokenBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingUnit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenManager","outputs":[{"internalType":"contract ITokenManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"updateAccruals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"veToken","outputs":[{"internalType":"contract IVotingEscrow","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b50604051620028a9380380620028a9833981810160405260808110156200003757600080fd5b50805160208201516040830151606090930151600160009081559293919284908490849084908190811515806200006d57508015155b620000aa5760405162461bcd60e51b8152600401808060200182810382526031815260200180620028446031913960400191505060405180910390fd5b801580620000b757508181115b620000f45760405162461bcd60e51b8152600401808060200182810382526034815260200180620028756034913960400191505060405180910390fd5b8180620000fe5750425b81806200010a57506000195b60809190915260a05250600090506200012b6001600160e01b03620001e616565b600180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505060028054336001600160a01b03199182161790915560058054610100600160a81b0319166101006001600160a01b0396871602179055670de0b6b3a764000060c0526006805482169385169390931790925560078054909216921691909117905550620001ea92505050565b3390565b60805160a05160c05161261462000230600039806106d65280610f8f528061179b528061206a52508061145352806117bf5250806113c4528061169f52506126146000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80637cb2b79c11610104578063be9a6555116100a2578063e307c95211610071578063e307c95214610561578063ef5cfb8c14610569578063f2fde38b1461059c578063f3fef3a3146105cf576101cf565b8063be9a65551461052a578063bedb86fb14610532578063cc5d63c614610551578063d56b288914610559576101cf565b80638da5cb5b116100de5780638da5cb5b14610462578063976d69821461046a57806398fc08831461049d578063adc9772e146104f1576101cf565b80637cb2b79c1461040b5780638456cb591461043e5780638c899c2e1461045a576101cf565b8063470db282116101715780636f3a36521161014b5780636f3a36521461038f578063715018a6146103c257806372f702f3146103ca5780637357ff73146103d2576101cf565b8063470db282146102fd5780634f7459d514610354578063570ca73514610387576101cf565b80632a709b14116101ad5780632a709b14146102895780633236e10a146102ba5780633b92eb23146102c25780633f8e5766146102ca576101cf565b806303ed9f69146101d457806322b2ddb01461022157806329605e7714610254575b600080fd5b61020f600480360360408110156101ea57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610608565b60408051918252519081900360200190f35b61020f6004803603602081101561023757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610743565b6102876004803603602081101561026a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610755565b005b610291610874565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61020f610890565b610291610896565b610287600480360360208110156102e057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108b2565b6103366004803603604081101561031357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610ab1565b60408051938452602084019290925282820152519081900360600190f35b6102876004803603602081101561036a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610af0565b610291610bfd565b610287600480360360208110156103a557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c19565b610287610d26565b610291610e26565b610287600480360360408110156103e857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610e47565b6102876004803603602081101561042157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611073565b610446611180565b604080519115158252519081900360200190f35b61020f611189565b610291611236565b61020f6004803603602081101561048057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611252565b6104d8600480360360408110156104b357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611327565b6040805192835260208301919091528051918290030190f35b6102876004803603604081101561050757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561134b565b61020f61169d565b6102876004803603602081101561054857600080fd5b503515156116c1565b61020f611799565b61020f6117bd565b6102916117e1565b6102876004803603602081101561057f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166117fd565b610287600480360360208110156105b257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611a81565b610287600480360360408110156105e557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611c0c565b73ffffffffffffffffffffffffffffffffffffffff808316600081815260046020908152604080832094861683529381528382209282526003905291822080546106575760009250505061073d565b8054600090829061066f90600163ffffffff611d9f16565b8154811061067957fe5b906000526020600020906003020190506000816002015490506000838560000154815481106106a457fe5b600091825260208220600260039092020190810154909250906106cd848363ffffffff611d9f16565b9050600061071a7f000000000000000000000000000000000000000000000000000000000000000061070e846107028e611252565b9063ffffffff611de816565b9063ffffffff611e5b16565b6001890154909150610732908263ffffffff611e9d16565b985050505050505050505b92915050565b60096020526000908152604090205481565b61075d611f11565b60015473ffffffffffffffffffffffffffffffffffffffff9081169116146107e657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60025460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed90600090a3600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b600a5473ffffffffffffffffffffffffffffffffffffffff1681565b60055460ff161561092457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f426f617264726f6f6d206f7065726174696f6e73206172652070617573656400604482015290519081900360640190fd5b600654604080517f6ff97f1d000000000000000000000000000000000000000000000000000000008152905160609273ffffffffffffffffffffffffffffffffffffffff1691636ff97f1d916004808301926000929190829003018186803b15801561098f57600080fd5b505afa1580156109a3573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405260208110156109ea57600080fd5b8101908080516040519392919084640100000000821115610a0a57600080fd5b908301906020820185811115610a1f57600080fd5b8251866020820283011164010000000082111715610a3c57600080fd5b82525081516020918201928201910280838360005b83811015610a69578181015183820152602001610a51565b50505050905001604052505050905060008090505b8151811015610aac57610aa4828281518110610a9657fe5b602002602001015184611f15565b600101610a7e565b505050565b60036020528160005260406000208181548110610aca57fe5b600091825260209091206003909102018054600182015460029092015490935090915083565b610af8611f11565b60015473ffffffffffffffffffffffffffffffffffffffff908116911614610b8157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6007805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155604080519182525133917fbe470a8b4dd958af54adb375a48e2136d09f81557386eecf3061bb1b9db04cdf919081900360200190a250565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b610c21611f11565b60015473ffffffffffffffffffffffffffffffffffffffff908116911614610caa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600a805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155604080519182525133917f3c29eb8f1de506a1b3731d070c899fd177a5930c388ffdd9529a875b51983936919081900360200190a250565b610d2e611f11565b60015473ffffffffffffffffffffffffffffffffffffffff908116911614610db757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60015460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b600554610100900473ffffffffffffffffffffffffffffffffffffffff1681565b60075473ffffffffffffffffffffffffffffffffffffffff163314610eb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018061252b6030913960400191505060405180910390fd5b6000610ec1611189565b905060008111610f1c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604181526020018061259e6041913960600191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805490919082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110610f7457fe5b6000918252602082206003909102019150610fb98461070e877f000000000000000000000000000000000000000000000000000000000000000063ffffffff611de816565b9050826040518060600160405280428152602001878152602001610fea848660020154611e9d90919063ffffffff16565b905281546001818101845560009384526020938490208351600390930201918255838301519082015560409182015160029091015580518781529051339273ffffffffffffffffffffffffffffffffffffffff8a16927f061987dc467cef9a3b88f2002ef2703e520cba4f67474e37c6a358127b5bd580929081900390910190a3505050505050565b61107b611f11565b60015473ffffffffffffffffffffffffffffffffffffffff90811691161461110457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155604080519182525133917f1c4d2cb3995a48e868c630ae86eb2667ef227606d91072486491785f4fb8dd43919081900360200190a250565b60055460ff1681565b6000611231600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663047fc9aa6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111f657600080fd5b505afa15801561120a573d6000803e3d6000fd5b505050506040513d602081101561122057600080fd5b50516008549063ffffffff611e9d16565b905090565b60015473ffffffffffffffffffffffffffffffffffffffff1690565b600a54604080517f86b9c25200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152915160009361073d9316916386b9c252916024808301926020929190829003018186803b1580156112c957600080fd5b505afa1580156112dd573d6000803e3d6000fd5b505050506040513d60208110156112f357600080fd5b505173ffffffffffffffffffffffffffffffffffffffff84166000908152600960205260409020549063ffffffff611e9d16565b60046020908152600092835260408084209091529082529020805460019091015482565b600260005414156113bd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000557f000000000000000000000000000000000000000000000000000000000000000042101561145157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f54696d65626f756e6461626c653a204e6f742073746172746564207965740000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000004211156114e057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f54696d65626f756e6461626c653a20416c72656164792066696e697368656400604482015290519081900360640190fd5b60055460ff161561155257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f426f617264726f6f6d206f7065726174696f6e73206172652070617573656400604482015290519081900360640190fd5b600081116115c157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f426f617264726f6f6d3a20616d6f756e742073686f756c64206265203e203000604482015290519081900360640190fd5b6115ca336108b2565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260096020526040902054611600908263ffffffff611e9d16565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260096020526040902055600854611639908263ffffffff611e9d16565b600855611647338383612146565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff84169133917f5dac0c1b1112564a045ba943c9d50270893e8e826c49be8e7073adc713ab7bd79181900360200190a350506001600055565b7f000000000000000000000000000000000000000000000000000000000000000081565b60025473ffffffffffffffffffffffffffffffffffffffff163314611731576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061257c6022913960400191505060405180910390fd5b600580548215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091168117909155604080519182525133917fa18b8af00b6a54680709d340bd80dfc4b97c62cec48d0508582047a1dee90b08919081900360200190a250565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b6002600054141561186f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005560055460ff16156118e657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f426f617264726f6f6d206f7065726174696f6e73206172652070617573656400604482015290519081900360640190fd5b6118ef336108b2565b600654604080517f6ff97f1d000000000000000000000000000000000000000000000000000000008152905160609273ffffffffffffffffffffffffffffffffffffffff1691636ff97f1d916004808301926000929190829003018186803b15801561195a57600080fd5b505afa15801561196e573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405260208110156119b557600080fd5b81019080805160405193929190846401000000008211156119d557600080fd5b9083019060208201858111156119ea57600080fd5b8251866020820283011164010000000082111715611a0757600080fd5b82525081516020918201928201910280838360005b83811015611a34578181015183820152602001611a1c565b50505050905001604052505050905060008090505b8151811015611a7757611a6f83838381518110611a6257fe5b60200260200101516121ff565b600101611a49565b5050600160005550565b611a89611f11565b60015473ffffffffffffffffffffffffffffffffffffffff908116911614611b1257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611b7e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806125056026913960400191505060405180910390fd5b60015460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60026000541415611c7e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005580611cef57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f426f617264726f6f6d3a20616d6f756e742073686f756c64206265203e203000604482015290519081900360640190fd5b611cf8336108b2565b33600090815260096020526040902054611d18908263ffffffff611d9f16565b33600090815260096020526040902055600854611d3b908263ffffffff611d9f16565b600855611d49338383612352565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff84169133917fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb9181900360200190a350506001600055565b6000611de183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506123d4565b9392505050565b600082611df75750600061073d565b82820282848281611e0457fe5b0414611de1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061255b6021913960400191505060405180910390fd5b6000611de183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612485565b600082820183811015611de157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b73ffffffffffffffffffffffffffffffffffffffff8083166000818152600460209081526040808320948616835293815283822092825260039052919091208054611fa55760408051606081018252428152600060208083018281529383018281528554600181810188558785529290932093516003909302909301918255925192810192909255516002909101555b805482547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9091011415611fda575050612142565b805460009082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810190811061200d57fe5b9060005260206000209060030201905060008160020154905060008385600001548154811061203857fe5b60009182526020822060026003909202019081015490925090612061848363ffffffff611d9f16565b905060006120967f000000000000000000000000000000000000000000000000000000000000000061070e846107028d611252565b87547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01895560018901549091506120d4908263ffffffff611e9d16565b600189018190556040805173ffffffffffffffffffffffffffffffffffffffff808e1682528c1660208201528082018490526060810192909252517ffd07974d3aaf62e9d6f1492b77eba5e72f99d8367e456eaf203de8491d42c9999181900360800190a150505050505050505b5050565b600554604080517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152306024830152604482018590529151610100909304909116916323b872dd916064808201926020929091908290030181600087803b1580156121ce57600080fd5b505af11580156121e2573d6000803e3d6000fd5b505050506040513d60208110156121f857600080fd5b5050505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526004602090815260408083203384529091529020600101548015610aac5773ffffffffffffffffffffffffffffffffffffffff8083166000818152600460208181526040808420338552825280842060010184905580517fa9059cbb00000000000000000000000000000000000000000000000000000000815295891692860192909252602485018690529051869463a9059cbb9360448083019493928390030190829087803b1580156122ce57600080fd5b505af11580156122e2573d6000803e3d6000fd5b505050506040513d60208110156122f857600080fd5b505060408051838152905173ffffffffffffffffffffffffffffffffffffffff808716923392918716917fce405e67b4d6e56e438257e15f160ae28b450e6e7659bbc4c1f4e09a1ac846cb9181900360200190a450505050565b600554604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301526024820185905291516101009093049091169163a9059cbb916044808201926020929091908290030181600087803b1580156121ce57600080fd5b6000818484111561247d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561244257818101518382015260200161242a565b50505050905090810190601f16801561246f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836124ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815283516024840152835190928392604490910191908501908083836000831561244257818101518382015260200161242a565b5060008385816124fa57fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373426f617264726f6f6d3a2063616e206f6e6c792062652063616c6c656420627920456d697373696f6e4d616e61676572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f6e6c79206f70657261746f722063616e2063616c6c2074686973206d6574686f64426f617264726f6f6d3a2043616e6e6f74207265636569766520696e636f6d696e6720726577617264207768656e20746f6b656e2062616c616e63652069732030a264697066735822122033b250247424b418cf4ba4e8b3809c4d61c44b407036ae693b1a6fc461707b9864736f6c6343000606003354696d65626f756e643a20656974686572207374617274206f722066696e697368206d757374206265206e6f6e7a65726f54696d65626f756e643a2066696e697368206d757374206265207a65726f206f722067726561746572207468616e207374617274000000000000000000000000bf15797bb5e47f6fb094a4abdb2cfc43f77179ef000000000000000000000000a8081b99550fa2e6baba05b806553cb894d51fd8000000000000000000000000cc1269909de6a0f470b8796497fe071ee2fbc04000000000000000000000000000000000000000000000000000000000605ccfa0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80637cb2b79c11610104578063be9a6555116100a2578063e307c95211610071578063e307c95214610561578063ef5cfb8c14610569578063f2fde38b1461059c578063f3fef3a3146105cf576101cf565b8063be9a65551461052a578063bedb86fb14610532578063cc5d63c614610551578063d56b288914610559576101cf565b80638da5cb5b116100de5780638da5cb5b14610462578063976d69821461046a57806398fc08831461049d578063adc9772e146104f1576101cf565b80637cb2b79c1461040b5780638456cb591461043e5780638c899c2e1461045a576101cf565b8063470db282116101715780636f3a36521161014b5780636f3a36521461038f578063715018a6146103c257806372f702f3146103ca5780637357ff73146103d2576101cf565b8063470db282146102fd5780634f7459d514610354578063570ca73514610387576101cf565b80632a709b14116101ad5780632a709b14146102895780633236e10a146102ba5780633b92eb23146102c25780633f8e5766146102ca576101cf565b806303ed9f69146101d457806322b2ddb01461022157806329605e7714610254575b600080fd5b61020f600480360360408110156101ea57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610608565b60408051918252519081900360200190f35b61020f6004803603602081101561023757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610743565b6102876004803603602081101561026a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610755565b005b610291610874565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61020f610890565b610291610896565b610287600480360360208110156102e057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108b2565b6103366004803603604081101561031357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610ab1565b60408051938452602084019290925282820152519081900360600190f35b6102876004803603602081101561036a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610af0565b610291610bfd565b610287600480360360208110156103a557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c19565b610287610d26565b610291610e26565b610287600480360360408110156103e857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610e47565b6102876004803603602081101561042157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611073565b610446611180565b604080519115158252519081900360200190f35b61020f611189565b610291611236565b61020f6004803603602081101561048057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611252565b6104d8600480360360408110156104b357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611327565b6040805192835260208301919091528051918290030190f35b6102876004803603604081101561050757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561134b565b61020f61169d565b6102876004803603602081101561054857600080fd5b503515156116c1565b61020f611799565b61020f6117bd565b6102916117e1565b6102876004803603602081101561057f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166117fd565b610287600480360360208110156105b257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611a81565b610287600480360360408110156105e557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611c0c565b73ffffffffffffffffffffffffffffffffffffffff808316600081815260046020908152604080832094861683529381528382209282526003905291822080546106575760009250505061073d565b8054600090829061066f90600163ffffffff611d9f16565b8154811061067957fe5b906000526020600020906003020190506000816002015490506000838560000154815481106106a457fe5b600091825260208220600260039092020190810154909250906106cd848363ffffffff611d9f16565b9050600061071a7f0000000000000000000000000000000000000000000000000de0b6b3a764000061070e846107028e611252565b9063ffffffff611de816565b9063ffffffff611e5b16565b6001890154909150610732908263ffffffff611e9d16565b985050505050505050505b92915050565b60096020526000908152604090205481565b61075d611f11565b60015473ffffffffffffffffffffffffffffffffffffffff9081169116146107e657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60025460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed90600090a3600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b600a5473ffffffffffffffffffffffffffffffffffffffff1681565b60055460ff161561092457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f426f617264726f6f6d206f7065726174696f6e73206172652070617573656400604482015290519081900360640190fd5b600654604080517f6ff97f1d000000000000000000000000000000000000000000000000000000008152905160609273ffffffffffffffffffffffffffffffffffffffff1691636ff97f1d916004808301926000929190829003018186803b15801561098f57600080fd5b505afa1580156109a3573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405260208110156109ea57600080fd5b8101908080516040519392919084640100000000821115610a0a57600080fd5b908301906020820185811115610a1f57600080fd5b8251866020820283011164010000000082111715610a3c57600080fd5b82525081516020918201928201910280838360005b83811015610a69578181015183820152602001610a51565b50505050905001604052505050905060008090505b8151811015610aac57610aa4828281518110610a9657fe5b602002602001015184611f15565b600101610a7e565b505050565b60036020528160005260406000208181548110610aca57fe5b600091825260209091206003909102018054600182015460029092015490935090915083565b610af8611f11565b60015473ffffffffffffffffffffffffffffffffffffffff908116911614610b8157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6007805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155604080519182525133917fbe470a8b4dd958af54adb375a48e2136d09f81557386eecf3061bb1b9db04cdf919081900360200190a250565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b610c21611f11565b60015473ffffffffffffffffffffffffffffffffffffffff908116911614610caa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600a805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155604080519182525133917f3c29eb8f1de506a1b3731d070c899fd177a5930c388ffdd9529a875b51983936919081900360200190a250565b610d2e611f11565b60015473ffffffffffffffffffffffffffffffffffffffff908116911614610db757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60015460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b600554610100900473ffffffffffffffffffffffffffffffffffffffff1681565b60075473ffffffffffffffffffffffffffffffffffffffff163314610eb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018061252b6030913960400191505060405180910390fd5b6000610ec1611189565b905060008111610f1c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604181526020018061259e6041913960600191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805490919082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110610f7457fe5b6000918252602082206003909102019150610fb98461070e877f0000000000000000000000000000000000000000000000000de0b6b3a764000063ffffffff611de816565b9050826040518060600160405280428152602001878152602001610fea848660020154611e9d90919063ffffffff16565b905281546001818101845560009384526020938490208351600390930201918255838301519082015560409182015160029091015580518781529051339273ffffffffffffffffffffffffffffffffffffffff8a16927f061987dc467cef9a3b88f2002ef2703e520cba4f67474e37c6a358127b5bd580929081900390910190a3505050505050565b61107b611f11565b60015473ffffffffffffffffffffffffffffffffffffffff90811691161461110457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155604080519182525133917f1c4d2cb3995a48e868c630ae86eb2667ef227606d91072486491785f4fb8dd43919081900360200190a250565b60055460ff1681565b6000611231600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663047fc9aa6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111f657600080fd5b505afa15801561120a573d6000803e3d6000fd5b505050506040513d602081101561122057600080fd5b50516008549063ffffffff611e9d16565b905090565b60015473ffffffffffffffffffffffffffffffffffffffff1690565b600a54604080517f86b9c25200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152915160009361073d9316916386b9c252916024808301926020929190829003018186803b1580156112c957600080fd5b505afa1580156112dd573d6000803e3d6000fd5b505050506040513d60208110156112f357600080fd5b505173ffffffffffffffffffffffffffffffffffffffff84166000908152600960205260409020549063ffffffff611e9d16565b60046020908152600092835260408084209091529082529020805460019091015482565b600260005414156113bd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000557f00000000000000000000000000000000000000000000000000000000605ccfa042101561145157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f54696d65626f756e6461626c653a204e6f742073746172746564207965740000604482015290519081900360640190fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4211156114e057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f54696d65626f756e6461626c653a20416c72656164792066696e697368656400604482015290519081900360640190fd5b60055460ff161561155257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f426f617264726f6f6d206f7065726174696f6e73206172652070617573656400604482015290519081900360640190fd5b600081116115c157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f426f617264726f6f6d3a20616d6f756e742073686f756c64206265203e203000604482015290519081900360640190fd5b6115ca336108b2565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260096020526040902054611600908263ffffffff611e9d16565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260096020526040902055600854611639908263ffffffff611e9d16565b600855611647338383612146565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff84169133917f5dac0c1b1112564a045ba943c9d50270893e8e826c49be8e7073adc713ab7bd79181900360200190a350506001600055565b7f00000000000000000000000000000000000000000000000000000000605ccfa081565b60025473ffffffffffffffffffffffffffffffffffffffff163314611731576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061257c6022913960400191505060405180910390fd5b600580548215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091168117909155604080519182525133917fa18b8af00b6a54680709d340bd80dfc4b97c62cec48d0508582047a1dee90b08919081900360200190a250565b7f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b6002600054141561186f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005560055460ff16156118e657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f426f617264726f6f6d206f7065726174696f6e73206172652070617573656400604482015290519081900360640190fd5b6118ef336108b2565b600654604080517f6ff97f1d000000000000000000000000000000000000000000000000000000008152905160609273ffffffffffffffffffffffffffffffffffffffff1691636ff97f1d916004808301926000929190829003018186803b15801561195a57600080fd5b505afa15801561196e573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405260208110156119b557600080fd5b81019080805160405193929190846401000000008211156119d557600080fd5b9083019060208201858111156119ea57600080fd5b8251866020820283011164010000000082111715611a0757600080fd5b82525081516020918201928201910280838360005b83811015611a34578181015183820152602001611a1c565b50505050905001604052505050905060008090505b8151811015611a7757611a6f83838381518110611a6257fe5b60200260200101516121ff565b600101611a49565b5050600160005550565b611a89611f11565b60015473ffffffffffffffffffffffffffffffffffffffff908116911614611b1257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611b7e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806125056026913960400191505060405180910390fd5b60015460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60026000541415611c7e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005580611cef57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f426f617264726f6f6d3a20616d6f756e742073686f756c64206265203e203000604482015290519081900360640190fd5b611cf8336108b2565b33600090815260096020526040902054611d18908263ffffffff611d9f16565b33600090815260096020526040902055600854611d3b908263ffffffff611d9f16565b600855611d49338383612352565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff84169133917fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb9181900360200190a350506001600055565b6000611de183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506123d4565b9392505050565b600082611df75750600061073d565b82820282848281611e0457fe5b0414611de1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061255b6021913960400191505060405180910390fd5b6000611de183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612485565b600082820183811015611de157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b73ffffffffffffffffffffffffffffffffffffffff8083166000818152600460209081526040808320948616835293815283822092825260039052919091208054611fa55760408051606081018252428152600060208083018281529383018281528554600181810188558785529290932093516003909302909301918255925192810192909255516002909101555b805482547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9091011415611fda575050612142565b805460009082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810190811061200d57fe5b9060005260206000209060030201905060008160020154905060008385600001548154811061203857fe5b60009182526020822060026003909202019081015490925090612061848363ffffffff611d9f16565b905060006120967f0000000000000000000000000000000000000000000000000de0b6b3a764000061070e846107028d611252565b87547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01895560018901549091506120d4908263ffffffff611e9d16565b600189018190556040805173ffffffffffffffffffffffffffffffffffffffff808e1682528c1660208201528082018490526060810192909252517ffd07974d3aaf62e9d6f1492b77eba5e72f99d8367e456eaf203de8491d42c9999181900360800190a150505050505050505b5050565b600554604080517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152306024830152604482018590529151610100909304909116916323b872dd916064808201926020929091908290030181600087803b1580156121ce57600080fd5b505af11580156121e2573d6000803e3d6000fd5b505050506040513d60208110156121f857600080fd5b5050505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526004602090815260408083203384529091529020600101548015610aac5773ffffffffffffffffffffffffffffffffffffffff8083166000818152600460208181526040808420338552825280842060010184905580517fa9059cbb00000000000000000000000000000000000000000000000000000000815295891692860192909252602485018690529051869463a9059cbb9360448083019493928390030190829087803b1580156122ce57600080fd5b505af11580156122e2573d6000803e3d6000fd5b505050506040513d60208110156122f857600080fd5b505060408051838152905173ffffffffffffffffffffffffffffffffffffffff808716923392918716917fce405e67b4d6e56e438257e15f160ae28b450e6e7659bbc4c1f4e09a1ac846cb9181900360200190a450505050565b600554604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301526024820185905291516101009093049091169163a9059cbb916044808201926020929091908290030181600087803b1580156121ce57600080fd5b6000818484111561247d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561244257818101518382015260200161242a565b50505050905090810190601f16801561246f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836124ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815283516024840152835190928392604490910191908501908083836000831561244257818101518382015260200161242a565b5060008385816124fa57fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373426f617264726f6f6d3a2063616e206f6e6c792062652063616c6c656420627920456d697373696f6e4d616e61676572536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f6e6c79206f70657261746f722063616e2063616c6c2074686973206d6574686f64426f617264726f6f6d3a2043616e6e6f74207265636569766520696e636f6d696e6720726577617264207768656e20746f6b656e2062616c616e63652069732030a264697066735822122033b250247424b418cf4ba4e8b3809c4d61c44b407036ae693b1a6fc461707b9864736f6c63430006060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000bf15797bb5e47f6fb094a4abdb2cfc43f77179ef000000000000000000000000a8081b99550fa2e6baba05b806553cb894d51fd8000000000000000000000000cc1269909de6a0f470b8796497fe071ee2fbc04000000000000000000000000000000000000000000000000000000000605ccfa0
-----Decoded View---------------
Arg [0] : _stakingToken (address): 0xbf15797BB5E47F6fB094A4abDB2cfC43F77179Ef
Arg [1] : _tokenManager (address): 0xA8081b99550fA2e6BAba05b806553cB894d51FD8
Arg [2] : _emissionManager (address): 0xcc1269909DE6A0F470B8796497fe071Ee2FBC040
Arg [3] : _start (uint256): 1616695200
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000bf15797bb5e47f6fb094a4abdb2cfc43f77179ef
Arg [1] : 000000000000000000000000a8081b99550fa2e6baba05b806553cb894d51fd8
Arg [2] : 000000000000000000000000cc1269909de6a0f470b8796497fe071ee2fbc040
Arg [3] : 00000000000000000000000000000000000000000000000000000000605ccfa0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.