Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x602a5461 | 14742393 | 910 days ago | IN | 0 ETH | 0.05414945 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
Vyper_contract
Compiler Version
vyper:0.2.16
Contract Source Code (Vyper language format)
# @version 0.2.16 """ @title Liquidity Gauge v4 @author StakeDAO Protocol @license MIT """ # Original idea and credit: # Curve Finance's veCRV # https://github.com/curvefi/curve-dao-contracts/blob/master/contracts/gauges/LiquidityGaugeV4.vy # Mostly forked from Curve, except that now there is no direct link between the gauge controller # and the gauges. In this implementation, SDT rewards are like any other token rewards. from vyper.interfaces import ERC20 implements: ERC20 interface VotingEscrow: def user_point_epoch(addr: address) -> uint256: view def user_point_history__ts(addr: address, epoch: uint256) -> uint256: view interface VotingEscrowBoost: def adjusted_balance_of(_account: address) -> uint256: view interface ERC20Extended: def symbol() -> String[26]: view def decimals() -> uint256: view event Deposit: provider: indexed(address) value: uint256 event Withdraw: provider: indexed(address) value: uint256 event UpdateLiquidityLimit: user: address original_balance: uint256 original_supply: uint256 working_balance: uint256 working_supply: uint256 event CommitOwnership: admin: address event ApplyOwnership: admin: address event Transfer: _from: indexed(address) _to: indexed(address) _value: uint256 event Approval: _owner: indexed(address) _spender: indexed(address) _value: uint256 event RewardDataUpdate: _token: indexed(address) _amount: uint256 struct Reward: token: address distributor: address period_finish: uint256 rate: uint256 last_update: uint256 integral: uint256 MAX_REWARDS: constant(uint256) = 8 TOKENLESS_PRODUCTION: constant(uint256) = 40 WEEK: constant(uint256) = 604800 SDT: public(address) voting_escrow: public(address) veBoost_proxy: public(address) staking_token: public(address) decimal_staking_token: public(uint256) balanceOf: public(HashMap[address, uint256]) totalSupply: public(uint256) allowance: public(HashMap[address, HashMap[address, uint256]]) name: public(String[64]) symbol: public(String[40]) working_balances: public(HashMap[address, uint256]) working_supply: public(uint256) integrate_checkpoint_of: public(HashMap[address, uint256]) # For tracking external rewards reward_count: public(uint256) reward_tokens: public(address[MAX_REWARDS]) reward_data: public(HashMap[address, Reward]) # claimant -> default reward receiver rewards_receiver: public(HashMap[address, address]) # reward token -> claiming address -> integral reward_integral_for: public(HashMap[address, HashMap[address, uint256]]) # user -> [uint128 claimable amount][uint128 claimed amount] claim_data: HashMap[address, HashMap[address, uint256]] admin: public(address) future_admin: public(address) claimer: public(address) initialized: public(bool) vault:public(address) @external def __init__(): """ @notice Contract constructor @dev The contract has an initializer to prevent the take over of the implementation """ assert self.initialized == False #dev: contract is already initialized self.initialized = True @external def initialize(_staking_token: address, _admin: address, _SDT: address, _voting_escrow: address, _veBoost_proxy: address, _distributor: address,_vault:address,symbol:String[26]): """ @notice Contract initializer @param _staking_token Liquidity Pool contract address @param _admin Admin who can kill the gauge @param _SDT Address of the SDT token @param _voting_escrow Address of the veSDT contract @param _veBoost_proxy Address of the proxy contract used to query veSDT balances and taking into account potential delegations @param _distributor Address of the contract responsible for distributing SDT tokens to this gauge """ assert self.initialized == False #dev: contract is already initialized self.initialized = True assert _admin != ZERO_ADDRESS assert _SDT != ZERO_ADDRESS assert _voting_escrow != ZERO_ADDRESS assert _veBoost_proxy != ZERO_ADDRESS assert _distributor != ZERO_ADDRESS assert _vault != ZERO_ADDRESS self.admin = _admin self.staking_token = _staking_token self.decimal_staking_token = ERC20Extended(_staking_token).decimals() self.name = concat("Stake DAO ", symbol, " Gauge") self.symbol = concat("sd",symbol, "-gauge") self.SDT = _SDT self.voting_escrow = _voting_escrow self.veBoost_proxy = _veBoost_proxy self.vault = _vault # add in all liquidityGauge the SDT reward - the distribution could be null though self.reward_data[_SDT].distributor = _distributor self.reward_tokens[0] = _SDT self.reward_count = 1 @view @external def decimals() -> uint256: """ @notice Get the number of decimals for this token @dev Implemented as a view method to reduce gas costs @return uint256 decimal places """ return self.decimal_staking_token @internal def _update_liquidity_limit(addr: address, l: uint256, L: uint256): """ @notice Calculate limits which depend on the amount of SDT token per-user. Effectively it calculates working balances to apply amplification of SDT production by SDT @param addr User address @param l User's amount of liquidity (LP tokens) @param L Total amount of liquidity (LP tokens) """ # To be called after totalSupply is updated voting_balance: uint256 = VotingEscrowBoost(self.veBoost_proxy).adjusted_balance_of(addr) voting_total: uint256 = ERC20(self.voting_escrow).totalSupply() lim: uint256 = l * TOKENLESS_PRODUCTION / 100 if voting_total > 0: lim += L * voting_balance / voting_total * (100 - TOKENLESS_PRODUCTION) / 100 lim = min(l, lim) old_bal: uint256 = self.working_balances[addr] self.working_balances[addr] = lim _working_supply: uint256 = self.working_supply + lim - old_bal self.working_supply = _working_supply log UpdateLiquidityLimit(addr, l, L, lim, _working_supply) @internal def _checkpoint_reward(_user: address, token: address, _total_supply: uint256, _user_balance: uint256, _claim: bool, receiver: address): """ @notice Claim pending rewards and checkpoint rewards for a user """ total_supply: uint256 = _total_supply user_balance: uint256 = _user_balance if token == self.SDT : total_supply = self.working_supply user_balance = self.working_balances[_user] integral: uint256 = self.reward_data[token].integral last_update: uint256 = min(block.timestamp, self.reward_data[token].period_finish) duration: uint256 = last_update - self.reward_data[token].last_update if duration != 0: self.reward_data[token].last_update = last_update if total_supply != 0: integral += duration * self.reward_data[token].rate * 10**18 / total_supply self.reward_data[token].integral = integral if _user != ZERO_ADDRESS: integral_for: uint256 = self.reward_integral_for[token][_user] new_claimable: uint256 = 0 if integral_for < integral: self.reward_integral_for[token][_user] = integral new_claimable = user_balance * (integral - integral_for) / 10**18 claim_data: uint256 = self.claim_data[_user][token] total_claimable: uint256 = shift(claim_data, -128) + new_claimable if total_claimable > 0: total_claimed: uint256 = claim_data % 2**128 if _claim: response: Bytes[32] = raw_call( token, concat( method_id("transfer(address,uint256)"), convert(receiver, bytes32), convert(total_claimable, bytes32), ), max_outsize=32, ) if len(response) != 0: assert convert(response, bool) self.claim_data[_user][token] = total_claimed + total_claimable elif new_claimable > 0: self.claim_data[_user][token] = total_claimed + shift(total_claimable, 128) if token == self.SDT : self.integrate_checkpoint_of[_user] = block.timestamp @internal def _checkpoint_rewards(_user: address, _total_supply: uint256, _claim: bool, _receiver: address, _only_checkpoint:bool = False): """ @notice Claim pending rewards and checkpoint rewards for a user """ receiver: address = _receiver user_balance: uint256 = 0 if _user != ZERO_ADDRESS: user_balance = self.balanceOf[_user] if _claim and _receiver == ZERO_ADDRESS: # if receiver is not explicitly declared, check if a default receiver is set receiver = self.rewards_receiver[_user] if receiver == ZERO_ADDRESS: # if no default receiver is set, direct claims to the user receiver = _user if _only_checkpoint: self._checkpoint_reward(_user, self.SDT, _total_supply, user_balance, False, receiver) else: reward_count: uint256 = self.reward_count for i in range(MAX_REWARDS): if i == reward_count: break token: address = self.reward_tokens[i] self._checkpoint_reward(_user, token, _total_supply, user_balance, _claim, receiver) @external def user_checkpoint(addr: address) -> bool: """ @notice Record a checkpoint for `addr` @param addr User address @return bool success """ assert msg.sender == addr # dev: unauthorized total_supply: uint256 = self.totalSupply self._checkpoint_rewards(addr, total_supply, False, ZERO_ADDRESS, True) self._update_liquidity_limit(addr, self.balanceOf[addr], total_supply) return True @view @external def claimed_reward(_addr: address, _token: address) -> uint256: """ @notice Get the number of already-claimed reward tokens for a user @param _addr Account to get reward amount for @param _token Token to get reward amount for @return uint256 Total amount of `_token` already claimed by `_addr` """ return self.claim_data[_addr][_token] % 2**128 @view @external def claimable_reward(_user: address, _reward_token: address) -> uint256: """ @notice Get the number of claimable reward tokens for a user @param _user Account to get reward amount for @param _reward_token Token to get reward amount for @return uint256 Claimable reward token amount """ integral: uint256 = self.reward_data[_reward_token].integral total_supply: uint256 = self.totalSupply user_balance: uint256 = self.balanceOf[_user] if _reward_token == self.SDT: total_supply = self.working_supply user_balance = self.working_balances[_user] if total_supply != 0: last_update: uint256 = min(block.timestamp, self.reward_data[_reward_token].period_finish) duration: uint256 = last_update - self.reward_data[_reward_token].last_update integral += (duration * self.reward_data[_reward_token].rate * 10**18 / total_supply) integral_for: uint256 = self.reward_integral_for[_reward_token][_user] new_claimable: uint256 = user_balance * (integral - integral_for) / 10**18 return shift(self.claim_data[_user][_reward_token], -128) + new_claimable @external def set_rewards_receiver(_receiver: address): """ @notice Set the default reward receiver for the caller. @dev When set to ZERO_ADDRESS, rewards are sent to the caller @param _receiver Receiver address for any rewards claimed via `claim_rewards` """ self.rewards_receiver[msg.sender] = _receiver @external def set_vault(_vault:address): """ @notice Set the vault contract @param _vault Address of the new vault """ assert self.admin == msg.sender #dev : only admin can call this function self.vault = _vault @external @nonreentrant('lock') def claim_rewards(_addr: address = msg.sender, _receiver: address = ZERO_ADDRESS): """ @notice Claim available reward tokens for `_addr` @param _addr Address to claim for @param _receiver Address to transfer rewards to - if set to ZERO_ADDRESS, uses the default reward receiver for the caller """ if _receiver != ZERO_ADDRESS: assert _addr == msg.sender # dev: cannot redirect when claiming for another user self._checkpoint_rewards(_addr, self.totalSupply, True, _receiver) @external @nonreentrant('lock') def claim_rewards_for(_addr: address, _receiver: address): """ @notice Claim available reward tokens for `_addr` @param _addr Address to claim for @param _receiver Address to transfer rewards to - if set to ZERO_ADDRESS, uses the default reward receiver for the caller """ assert self.claimer == msg.sender # dev: only the claim contract can claim for other if _receiver != _addr: assert _receiver == self.claimer # dev: if the receiver is not the user it needs to be the claimer self._checkpoint_rewards(_addr, self.totalSupply, True, _receiver) @external def kick(addr: address): """ @notice Kick `addr` for abusing their boost @dev Only if either they had another voting event, or their voting escrow lock expired @param addr Address to kick """ t_last: uint256 = self.integrate_checkpoint_of[addr] t_ve: uint256 = VotingEscrow(self.voting_escrow).user_point_history__ts( addr, VotingEscrow(self.voting_escrow).user_point_epoch(addr) ) _balance: uint256 = self.balanceOf[addr] assert ERC20(self.voting_escrow).balanceOf(addr) == 0 or t_ve > t_last # dev: kick not allowed assert self.working_balances[addr] > _balance * TOKENLESS_PRODUCTION / 100 # dev: kick not needed total_supply: uint256 = self.totalSupply self._checkpoint_rewards(addr, total_supply, False, ZERO_ADDRESS, True) self._update_liquidity_limit(addr, self.balanceOf[addr], total_supply) @external @nonreentrant('lock') def deposit(_value: uint256, _addr: address = msg.sender, _claim_rewards: bool = False): """ @notice Deposit `_value` LP tokens @dev Depositting also claims pending reward tokens @param _value Number of tokens to deposit @param _addr Address to deposit for """ assert msg.sender == self.vault #only vault contract can deposit total_supply: uint256 = self.totalSupply if _value != 0: is_rewards: bool = self.reward_count != 0 if is_rewards: self._checkpoint_rewards(_addr, total_supply, _claim_rewards, ZERO_ADDRESS) total_supply += _value new_balance: uint256 = self.balanceOf[_addr] + _value self.balanceOf[_addr] = new_balance self.totalSupply = total_supply self._update_liquidity_limit(_addr, new_balance, total_supply) ERC20(self.staking_token).transferFrom(msg.sender, self, _value) else: self._checkpoint_rewards(_addr, total_supply, False, ZERO_ADDRESS, True) log Deposit(_addr, _value) log Transfer(ZERO_ADDRESS, _addr, _value) @external @nonreentrant('lock') def withdraw(_value: uint256, _addr: address, _claim_rewards: bool = False): """ @notice Withdraw `_value` LP tokens @dev Withdrawing also claims pending reward tokens @param _value Number of tokens to withdraw """ assert msg.sender == self.vault #only vault contract can withdraw total_supply: uint256 = self.totalSupply if _value != 0: is_rewards: bool = self.reward_count != 0 if is_rewards: self._checkpoint_rewards(_addr, total_supply, _claim_rewards, ZERO_ADDRESS) total_supply -= _value new_balance: uint256 = self.balanceOf[_addr] - _value self.balanceOf[_addr] = new_balance self.totalSupply = total_supply self._update_liquidity_limit(_addr, new_balance, total_supply) ERC20(self.staking_token).transfer(msg.sender, _value) else: self._checkpoint_rewards(_addr, total_supply, False, ZERO_ADDRESS, True) log Withdraw(_addr, _value) log Transfer(msg.sender, ZERO_ADDRESS, _value) @internal def _transfer(_from: address, _to: address, _value: uint256): total_supply: uint256 = self.totalSupply if _value != 0: is_rewards: bool = self.reward_count != 0 if is_rewards: self._checkpoint_rewards(_from, total_supply, False, ZERO_ADDRESS) new_balance: uint256 = self.balanceOf[_from] - _value self.balanceOf[_from] = new_balance self._update_liquidity_limit(_from, new_balance, total_supply) if is_rewards: self._checkpoint_rewards(_to, total_supply, False, ZERO_ADDRESS) new_balance = self.balanceOf[_to] + _value self.balanceOf[_to] = new_balance self._update_liquidity_limit(_to, new_balance, total_supply) else: self._checkpoint_rewards(_from, total_supply, False, ZERO_ADDRESS, True) self._checkpoint_rewards(_to, total_supply, False, ZERO_ADDRESS, True) log Transfer(_from, _to, _value) @external @nonreentrant('lock') def transfer(_to : address, _value : uint256) -> bool: """ @notice Transfer token for a specified address @dev Transferring claims pending reward tokens for the sender and receiver @param _to The address to transfer to. @param _value The amount to be transferred. """ self._transfer(msg.sender, _to, _value) return True @external @nonreentrant('lock') def transferFrom(_from : address, _to : address, _value : uint256) -> bool: """ @notice Transfer tokens from one address to another. @dev Transferring claims pending reward tokens for the sender and receiver @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint256 the amount of tokens to be transferred """ _allowance: uint256 = self.allowance[_from][msg.sender] if _allowance != MAX_UINT256: self.allowance[_from][msg.sender] = _allowance - _value self._transfer(_from, _to, _value) return True @external def approve(_spender : address, _value : uint256) -> bool: """ @notice Approve the passed address to transfer the specified amount of tokens on behalf of msg.sender @dev Beware that changing an allowance via this method brings the risk that someone may use both the old and new allowance by unfortunate transaction ordering. This may be mitigated with the use of {incraseAllowance} and {decreaseAllowance}. https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 @param _spender The address which will transfer the funds @param _value The amount of tokens that may be transferred @return bool success """ self.allowance[msg.sender][_spender] = _value log Approval(msg.sender, _spender, _value) return True @external def increaseAllowance(_spender: address, _added_value: uint256) -> bool: """ @notice Increase the allowance granted to `_spender` by the caller @dev This is alternative to {approve} that can be used as a mitigation for the potential race condition @param _spender The address which will transfer the funds @param _added_value The amount of to increase the allowance @return bool success """ allowance: uint256 = self.allowance[msg.sender][_spender] + _added_value self.allowance[msg.sender][_spender] = allowance log Approval(msg.sender, _spender, allowance) return True @external def decreaseAllowance(_spender: address, _subtracted_value: uint256) -> bool: """ @notice Decrease the allowance granted to `_spender` by the caller @dev This is alternative to {approve} that can be used as a mitigation for the potential race condition @param _spender The address which will transfer the funds @param _subtracted_value The amount of to decrease the allowance @return bool success """ allowance: uint256 = self.allowance[msg.sender][_spender] - _subtracted_value self.allowance[msg.sender][_spender] = allowance log Approval(msg.sender, _spender, allowance) return True @external def add_reward(_reward_token: address, _distributor: address): """ @notice Set the active reward contract """ assert msg.sender == self.admin # dev: only owner reward_count: uint256 = self.reward_count assert reward_count < MAX_REWARDS assert self.reward_data[_reward_token].distributor == ZERO_ADDRESS self.reward_data[_reward_token].distributor = _distributor self.reward_tokens[reward_count] = _reward_token self.reward_count = reward_count + 1 @external def set_reward_distributor(_reward_token: address, _distributor: address): current_distributor: address = self.reward_data[_reward_token].distributor assert msg.sender == current_distributor or msg.sender == self.admin assert current_distributor != ZERO_ADDRESS assert _distributor != ZERO_ADDRESS self.reward_data[_reward_token].distributor = _distributor @external def set_claimer(_claimer: address): assert msg.sender == self.admin assert _claimer != ZERO_ADDRESS self.claimer = _claimer @external @nonreentrant("lock") def deposit_reward_token(_reward_token: address, _amount: uint256): assert msg.sender == self.reward_data[_reward_token].distributor self._checkpoint_rewards(ZERO_ADDRESS, self.totalSupply, False, ZERO_ADDRESS) response: Bytes[32] = raw_call( _reward_token, concat( method_id("transferFrom(address,address,uint256)"), convert(msg.sender, bytes32), convert(self, bytes32), convert(_amount, bytes32), ), max_outsize=32, ) if len(response) != 0: assert convert(response, bool) period_finish: uint256 = self.reward_data[_reward_token].period_finish if block.timestamp >= period_finish: self.reward_data[_reward_token].rate = _amount / WEEK else: remaining: uint256 = period_finish - block.timestamp leftover: uint256 = remaining * self.reward_data[_reward_token].rate self.reward_data[_reward_token].rate = (_amount + leftover) / WEEK self.reward_data[_reward_token].last_update = block.timestamp self.reward_data[_reward_token].period_finish = block.timestamp + WEEK log RewardDataUpdate(_reward_token,_amount) @external def commit_transfer_ownership(addr: address): """ @notice Transfer ownership of Gauge to `addr` @param addr Address to have ownership transferred to """ assert msg.sender == self.admin # dev: admin only assert addr != ZERO_ADDRESS # dev: future admin cannot be the 0 address self.future_admin = addr self.admin = addr log CommitOwnership(addr) @external def accept_transfer_ownership(): """ @notice Accept a pending ownership transfer """ _admin: address = self.future_admin assert msg.sender == _admin # dev: future admin only self.admin = _admin log ApplyOwnership(_admin)
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"name":"Deposit","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"Withdraw","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateLiquidityLimit","inputs":[{"name":"user","type":"address","indexed":false},{"name":"original_balance","type":"uint256","indexed":false},{"name":"original_supply","type":"uint256","indexed":false},{"name":"working_balance","type":"uint256","indexed":false},{"name":"working_supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"CommitOwnership","inputs":[{"name":"admin","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"ApplyOwnership","inputs":[{"name":"admin","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"Transfer","inputs":[{"name":"_from","type":"address","indexed":true},{"name":"_to","type":"address","indexed":true},{"name":"_value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"Approval","inputs":[{"name":"_owner","type":"address","indexed":true},{"name":"_spender","type":"address","indexed":true},{"name":"_value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"RewardDataUpdate","inputs":[{"name":"_token","type":"address","indexed":true},{"name":"_amount","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"initialize","inputs":[{"name":"_staking_token","type":"address"},{"name":"_admin","type":"address"},{"name":"_SDT","type":"address"},{"name":"_voting_escrow","type":"address"},{"name":"_veBoost_proxy","type":"address"},{"name":"_distributor","type":"address"},{"name":"_vault","type":"address"},{"name":"symbol","type":"string"}],"outputs":[],"gas":616542},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2418},{"stateMutability":"nonpayable","type":"function","name":"user_checkpoint","inputs":[{"name":"addr","type":"address"}],"outputs":[{"name":"","type":"bool"}],"gas":3493693},{"stateMutability":"view","type":"function","name":"claimed_reward","inputs":[{"name":"_addr","type":"address"},{"name":"_token","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":2976},{"stateMutability":"view","type":"function","name":"claimable_reward","inputs":[{"name":"_user","type":"address"},{"name":"_reward_token","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":26704},{"stateMutability":"nonpayable","type":"function","name":"set_rewards_receiver","inputs":[{"name":"_receiver","type":"address"}],"outputs":[],"gas":35613},{"stateMutability":"nonpayable","type":"function","name":"set_vault","inputs":[{"name":"_vault","type":"address"}],"outputs":[],"gas":37725},{"stateMutability":"nonpayable","type":"function","name":"claim_rewards","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"claim_rewards","inputs":[{"name":"_addr","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"claim_rewards","inputs":[{"name":"_addr","type":"address"},{"name":"_receiver","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"claim_rewards_for","inputs":[{"name":"_addr","type":"address"},{"name":"_receiver","type":"address"}],"outputs":[],"gas":3464274},{"stateMutability":"nonpayable","type":"function","name":"kick","inputs":[{"name":"addr","type":"address"}],"outputs":[],"gas":3514517},{"stateMutability":"nonpayable","type":"function","name":"deposit","inputs":[{"name":"_value","type":"uint256"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"deposit","inputs":[{"name":"_value","type":"uint256"},{"name":"_addr","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"deposit","inputs":[{"name":"_value","type":"uint256"},{"name":"_addr","type":"address"},{"name":"_claim_rewards","type":"bool"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"withdraw","inputs":[{"name":"_value","type":"uint256"},{"name":"_addr","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"withdraw","inputs":[{"name":"_value","type":"uint256"},{"name":"_addr","type":"address"},{"name":"_claim_rewards","type":"bool"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":14116426},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":14154376},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":39451},{"stateMutability":"nonpayable","type":"function","name":"increaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_added_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":41995},{"stateMutability":"nonpayable","type":"function","name":"decreaseAllowance","inputs":[{"name":"_spender","type":"address"},{"name":"_subtracted_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":42019},{"stateMutability":"nonpayable","type":"function","name":"add_reward","inputs":[{"name":"_reward_token","type":"address"},{"name":"_distributor","type":"address"}],"outputs":[],"gas":113033},{"stateMutability":"nonpayable","type":"function","name":"set_reward_distributor","inputs":[{"name":"_reward_token","type":"address"},{"name":"_distributor","type":"address"}],"outputs":[],"gas":40783},{"stateMutability":"nonpayable","type":"function","name":"set_claimer","inputs":[{"name":"_claimer","type":"address"}],"outputs":[],"gas":38212},{"stateMutability":"nonpayable","type":"function","name":"deposit_reward_token","inputs":[{"name":"_reward_token","type":"address"},{"name":"_amount","type":"uint256"}],"outputs":[],"gas":3585460},{"stateMutability":"nonpayable","type":"function","name":"commit_transfer_ownership","inputs":[{"name":"addr","type":"address"}],"outputs":[],"gas":75181},{"stateMutability":"nonpayable","type":"function","name":"accept_transfer_ownership","inputs":[],"outputs":[],"gas":40020},{"stateMutability":"view","type":"function","name":"SDT","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3078},{"stateMutability":"view","type":"function","name":"voting_escrow","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3108},{"stateMutability":"view","type":"function","name":"veBoost_proxy","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3138},{"stateMutability":"view","type":"function","name":"staking_token","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3168},{"stateMutability":"view","type":"function","name":"decimal_staking_token","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3198},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3443},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3258},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3718},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":13548},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":13578},{"stateMutability":"view","type":"function","name":"working_balances","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3593},{"stateMutability":"view","type":"function","name":"working_supply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3408},{"stateMutability":"view","type":"function","name":"integrate_checkpoint_of","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3653},{"stateMutability":"view","type":"function","name":"reward_count","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3468},{"stateMutability":"view","type":"function","name":"reward_tokens","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}],"gas":3543},{"stateMutability":"view","type":"function","name":"reward_data","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"token","type":"address"},{"name":"distributor","type":"address"},{"name":"period_finish","type":"uint256"},{"name":"rate","type":"uint256"},{"name":"last_update","type":"uint256"},{"name":"integral","type":"uint256"}],"gas":14973},{"stateMutability":"view","type":"function","name":"rewards_receiver","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"address"}],"gas":3773},{"stateMutability":"view","type":"function","name":"reward_integral_for","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":4018},{"stateMutability":"view","type":"function","name":"admin","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3618},{"stateMutability":"view","type":"function","name":"future_admin","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3648},{"stateMutability":"view","type":"function","name":"claimer","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3678},{"stateMutability":"view","type":"function","name":"initialized","inputs":[],"outputs":[{"name":"","type":"bool"}],"gas":3708},{"stateMutability":"view","type":"function","name":"vault","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3738}]
Contract Creation Code
602a54612981576001602a5561296956600436101561000d57611cc6565b600035601c52600051346129545763819dc9fb81141561037b5760043560a01c6129545760243560a01c6129545760443560a01c6129545760643560a01c6129545760843560a01c6129545760a43560a01c6129545760c43560a01c61295457603a60e43560040161014037601a60e435600401351161295457602a54612954576001602a556000602435181561295457600060443518156129545760006064351815612954576000608435181561295457600060a435181561295457600060c435181561295457602435602755600435600a556020610200600463313ce5676101a0526101bc6004355afa1561295457601f3d11156129545760005061020051600b556000600a6101a0527f5374616b652044414f20000000000000000000000000000000000000000000006101c0526101a0600a8060208461026001018260208501600060045af1505080518201915050610140601a8060208461026001018260208501600060045af15050805182019150506006610200527f20476175676500000000000000000000000000000000000000000000000000006102205261020060068060208461026001018260208501600060045af15050805182019150508061026052610260905080600f602082510161012060006003818352015b8261012051602002111561020057610222565b61012051602002850151610120518501555b81516001018083528114156101ed575b505050505050600060026101a0527f73640000000000000000000000000000000000000000000000000000000000006101c0526101a060028060208461026001018260208501600060045af1505080518201915050610140601a8060208461026001018260208501600060045af15050805182019150506006610200527f2d676175676500000000000000000000000000000000000000000000000000006102205261020060068060208461026001018260208501600060045af150508051820191505080610260526102609050806013602082510161012060006003818352015b8261012051602002111561031757610339565b61012051602002850151610120518501555b8151600101808352811415610304575b50505050505060443560075560643560085560843560095560c435602b5560a4356001602360443560e05260c052604060c0200155604435601b556001601a55005b63313ce56781141561039357600b5460005260206000f35b634b82009381141561044d5760043560a01c6129545760043533141561295457600d5461014052610140516004356101605261014051610180526040366101a03760016101e0526101e0516101c0516101a0516101805161016051600658016123a2565b610140526000506101405160043561016052600c60043560e05260c052604060c0205461018052610140516101a0526101a051610180516101605160065801611ccc565b61014052600050600160005260206000f35b63e77e74378114156104ae5760043560a01c6129545760243560a01c61295457602660043560e05260c052604060c02060243560e05260c052604060c020547001000000000000000000000000000000008082069050905060005260206000f35b6333fd6f748114156106ae5760043560a01c6129545760243560a01c612954576005602360243560e05260c052604060c020015461014052600d5461016052600c60043560e05260c052604060c0205461018052600754602435141561052b5760185461016052601760043560e05260c052604060c02054610180525b600061016051181561060757426002602360243560e05260c052604060c02001548082111561055a578061055c565b815b905090506101a0526101a0516004602360243560e05260c052604060c020015480821061295457808203905090506101c05261014080516101c0516003602360243560e05260c052604060c02001548082028215828483041417156129545780905090509050670de0b6b3a764000080820282158284830414171561295457809050905090506101605180801561295457820490509050818183011061295457808201905090508152505b602560243560e05260c052604060c02060043560e05260c052604060c020546101a05261018051610140516101a05180821061295457808203905090508082028215828483041417156129545780905090509050670de0b6b3a7640000808204905090506101c052602660043560e05260c052604060c02060243560e05260c052604060c0205460801c6101c0518181830110612954578082019050905060005260206000f35b63bdf981168114156106d85760043560a01c6129545760043560243360e05260c052604060c02055005b63895ef6da8114156107005760043560a01c6129545733602754141561295457600435602b55005b63e6f1daf281141561071c573361014052600061016052610785565b6384e9bd7e8114156107485760006101605260043560a01c612954576020600461014037600050610785565b639faceb1b8114156107805760043560a01c61295457602060046101403760243560a01c612954576020602461016037600050610785565b6107f9565b60005461295457600160005560006101605118156107a95733610140511415612954575b61014051610160516101405161018052600d546101a05260016101c052610160516101e0526101e0516101c0516101a0516101805160065801612378565b61016052610140526000506000600055005b63449a533a8114156108865760015461295457600160015560043560a01c6129545760243560a01c61295457336029541415612954576004356024351815610848576029546024351415612954575b60043561014052600d54610160526001610180526024356101a0526101a05161018051610160516101405160065801612378565b6000506000600155005b6396c55175811415610a835760043560a01c61295457601960043560e05260c052604060c020546101405260206102c0604463da020a1861022052600435610240526020610200602463010ae757610180526004356101a05261019c6008545afa1561295457601f3d111561295457600050610200516102605261023c6008545afa1561295457601f3d1115612954576000506102c05161016052600c60043560e05260c052604060c020546101805260206102c060246370a08231610240526004356102605261025c6008545afa1561295457601f3d1115612954576000506102c05161097557600161097f565b6101405161016051115b5b15612954576101805160288082028215828483041417156129545780905090509050606480820490509050601760043560e05260c052604060c02054111561295457600d546101a0526101405161016051610180516101a0516004356101c0526101a0516101e052604036610200376001610240526102405161022051610200516101e0516101c051600658016123a2565b6101a0526101805261016052610140526000506101405161016051610180516101a0516004356101c052600c60043560e05260c052604060c020546101e0526101a05161020052610200516101e0516101c05160065801611ccc565b6101a052610180526101605261014052600050005b63b6b55f25811415610a9f573361014052600061016052610b08565b636e553f65811415610acb5760006101605260243560a01c612954576020602461014037600050610b08565b6383df6747811415610b035760243560a01c61295457602060246101403760443560011c612954576020604461016037600050610b08565b610d74565b600254612954576001600255602b5433141561295457600d546101805260006004351815610c9d576000601a5414156101a0526101a05115610b9f576101405161016051610180516101a051610140516101c052610180516101e052610160516102005260006102205261022051610200516101e0516101c05160065801612378565b6101a0526101805261016052610140526000505b610180805160043581818301106129545780820190509050815250600c6101405160e05260c052604060c02054600435818183011061295457808201905090506101c0526101c051600c6101405160e05260c052604060c0205561018051600d556101405161016051610180516101a0516101c051610140516101e0526101c05161020052610180516102205261022051610200516101e05160065801611ccc565b6101c0526101a05261018052610160526101405260005060206102a060646323b872dd6101e05233610200523061022052600435610240526101fc6000600a545af11561295457601f3d1115612954576000506102a050610cf3565b610140516101605161018051610140516101a052610180516101c0526040366101e03760016102205261022051610200516101e0516101c0516101a051600658016123a2565b6101805261016052610140526000505b610140517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c6101a0808080600435815250506020905090506101a0a26101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6101a0808080600435815250506020905090506101a0a36000600255005b62f714ce811415610d8a57600061014052610db4565b62ebf5dd811415610daf5760443560011c612954576020604461014037600050610db4565b611000565b60035461295457600160035560243560a01c61295457602b5433141561295457600d546101605260006004351815610f36576000601a541415610180526101805115610e4c576101405161016051610180516024356101a052610160516101c052610140516101e052600061020052610200516101e0516101c0516101a05160065801612378565b6101805261016052610140526000505b61016080516004358082106129545780820390509050815250600c60243560e05260c052604060c0205460043580821061295457808203905090506101a0526101a051600c60243560e05260c052604060c0205561016051600d556101405161016051610180516101a0516024356101c0526101a0516101e0526101605161020052610200516101e0516101c05160065801611ccc565b6101a0526101805261016052610140526000506020610260604463a9059cbb6101c052336101e052600435610200526101dc6000600a545af11561295457601f3d11156129545760005061026050610f83565b610140516101605160243561018052610160516101a0526040366101c037600161020052610200516101e0516101c0516101a05161018051600658016123a2565b61016052610140526000505b6024357f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436461018080808060043581525050602090509050610180a26000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef61018080808060043581525050602090509050610180a36000600355005b63a9059cbb81141561105d5760045461295457600160045560043560a01c6129545733610140526004356101605260243561018052610180516101605161014051600658016125d5565b6000506001600052600060045560206000f35b6323b872dd81141561114d5760055461295457600160055560043560a01c6129545760243560a01c61295457600e60043560e05260c052604060c0203360e05260c052604060c02054610140527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61014051181561110857610140516044358082106129545780820390509050600e60043560e05260c052604060c0203360e05260c052604060c020555b6101405160043561016052602435610180526044356101a0526101a0516101805161016051600658016125d5565b610140526000506001600052600060055560206000f35b63095ea7b38114156111ca5760043560a01c61295457602435600e3360e05260c052604060c02060043560e05260c052604060c02055600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561014080808060243581525050602090509050610140a3600160005260206000f35b633950935181141561127d5760043560a01c61295457600e3360e05260c052604060c02060043560e05260c052604060c02054602435818183011061295457808201905090506101405261014051600e3360e05260c052604060c02060043560e05260c052604060c02055600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256101608080806101405181525050602090509050610160a3600160005260206000f35b63a457c2d781141561132e5760043560a01c61295457600e3360e05260c052604060c02060043560e05260c052604060c0205460243580821061295457808203905090506101405261014051600e3360e05260c052604060c02060043560e05260c052604060c02055600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256101608080806101405181525050602090509050610160a3600160005260206000f35b63e8de0d4d8114156113cc5760043560a01c6129545760243560a01c6129545760275433141561295457601a54610140526008610140511015612954576001602360043560e05260c052604060c0200154612954576024356001602360043560e05260c052604060c020015560043560016101405160088110156129545702601b015561014051600181818301106129545780820190509050601a55005b63058a3a248114156114525760043560a01c6129545760243560a01c612954576001602360043560e05260c052604060c0200154610140526101405133141561141657600161141c565b60275433145b5b156129545760006101405118156129545760006024351815612954576024356001602360043560e05260c052604060c0200155005b6329de95bf8114156114855760043560a01c61295457602754331415612954576000600435181561295457600435602955005b6393f7aa678114156117715760065461295457600160065560043560a01c612954576001602360043560e05260c052604060c020015433141561295457600061014052600d546101605260006101805260006101a0526101a05161018051610160516101405160065801612378565b600050600060046101a0527f23b872dd000000000000000000000000000000000000000000000000000000006101c0526101a060048060208461020001018260208501600060045af15050805182019150503360208261020001015260208101905030602082610200010152602081019050602435602082610200010152602081019050806102005261020090508051602001806102c08284600060045af11561295457505060206103a06102c0516102e060006004355af1156129545760203d808211156115c357806115c5565b815b90509050610380526103808051602001806101408284600060045af1156129545750506000610140511815611627576101408060200151600082518060209013612954578091901261295457806020036101000a820490509050905015612954575b6002602360043560e05260c052604060c02001546101a0526101a05142106116705760243562093a80808204905090506003602360043560e05260c052604060c02001556116f1565b6101a0514280821061295457808203905090506101c0526101c0516003602360043560e05260c052604060c020015480820282158284830414171561295457809050905090506101e0526024356101e0518181830110612954578082019050905062093a80808204905090506003602360043560e05260c052604060c02001555b426004602360043560e05260c052604060c02001554262093a80818183011061295457808201905090506002602360043560e05260c052604060c02001556004357f656e648408f08a8f933b2d1375eb24c442eafd5537451a75561a264a569639226101c0808080602435815250506020905090506101c0a26000600655005b636b441a408114156117e25760043560a01c612954576027543314156129545760006004351815612954576004356028556004356027557f2f56810a6bf40af059b96d3aea4db54081f378029a518390491093a7b67032e961014080808060043581525050602090509050610140a1005b63e5ea47b881141561184257602854610140526101405133141561295457610140516027557febee2d5739011062cb4f14113f3b36bf0ffe3da5c0568f64189d1012a11891056101608080806101405181525050602090509050610160a1005b63ba32c61981141561185a5760075460005260206000f35b63dfe050318114156118725760085460005260206000f35b63dca6e0bc81141561188a5760095460005260206000f35b632dc7d74c8114156118a257600a5460005260206000f35b63178f31858114156118ba57600b5460005260206000f35b6370a082318114156118ea5760043560a01c61295457600c60043560e05260c052604060c0205460005260206000f35b6318160ddd81141561190257600d5460005260206000f35b63dd62ed3e81141561194a5760043560a01c6129545760243560a01c61295457600e60043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b6306fdde038114156119e757600f80610180602082540161012060006003818352015b82610120516020021115611980576119a2565b61012051850154610120516020028501525b815160010180835281141561196d575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6395d89b41811415611a8457601380610180602082540161012060006003818352015b82610120516020021115611a1d57611a3f565b61012051850154610120516020028501525b8151600101808352811415611a0a575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6313ecb1ca811415611ab45760043560a01c61295457601760043560e05260c052604060c0205460005260206000f35b6317e28089811415611acc5760185460005260206000f35b639bd324f2811415611afc5760043560a01c61295457601960043560e05260c052604060c0205460005260206000f35b63963c94b9811415611b1457601a5460005260206000f35b6354c49fe9811415611b3c57600160043560088110156129545702601b015460005260206000f35b6348e9c65e811415611bd45760043560a01c61295457602360043560e05260c052604060c0206101408080808454815250506020810190508080600185015481525050602081019050808060028501548152505060208101905080806003850154815250506020810190508080600485015481525050602081019050808060058501548152505060c09050905060c05260c051610140f35b6301ddabf1811415611c045760043560a01c61295457602460043560e05260c052604060c0205460005260206000f35b63f05cc058811415611c4c5760043560a01c6129545760243560a01c61295457602560043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b63f851a440811415611c645760275460005260206000f35b6317f7182a811415611c7c5760285460005260206000f35b63d379be23811415611c945760295460005260206000f35b63158ef93e811415611cac57602a5460005260206000f35b63fbfa77cf811415611cc457602b5460005260206000f35b505b60006000fd5b6101a0526101405261016052610180526020610260602463bbf7408a6101e05261014051610200526101fc6009545afa1561295457601f3d111561295457600050610260516101c052602061026060046318160ddd6102005261021c6008545afa1561295457601f3d111561295457600050610260516101e05261016051602880820282158284830414171561295457809050905090506064808204905090506102005260006101e0511115611de7576102008051610180516101c05180820282158284830414171561295457809050905090506101e05180801561295457820490509050603c8082028215828483041417156129545780905090509050606480820490509050818183011061295457808201905090508152505b610160516102005180821115611dfd5780611dff565b815b905090506102005260176101405160e05260c052604060c02054610220526102005160176101405160e05260c052604060c02055601854610200518181830110612954578082019050905061022051808210612954578082039050905061024052610240516018557f7ecd84343f76a23d2227290e0288da3251b045541698e575a5515af4f04197a361026080808061014051815250506020810190508080610160518152505060208101905080806101805181525050602081019050808061020051815250506020810190508080610240518152505060a090509050610260a16101a051565b610200526101405261016052610180526101a0526101c0526101e05261018051610220526101a05161024052600754610160511415611f3d576018546102205260176101405160e05260c052604060c02054610240525b600560236101605160e05260c052604060c02001546102605242600260236101605160e05260c052604060c020015480821115611f7a5780611f7c565b815b905090506102805261028051600460236101605160e05260c052604060c020015480821061295457808203905090506102a05260006102a05118156120745761028051600460236101605160e05260c052604060c020015560006102205118156120735761026080516102a051600360236101605160e05260c052604060c02001548082028215828483041417156129545780905090509050670de0b6b3a7640000808202821582848304141715612954578090509050905061022051808015612954578204905090508181830110612954578082019050905081525061026051600560236101605160e05260c052604060c02001555b5b600061014051181561234d5760256101605160e05260c052604060c0206101405160e05260c052604060c020546102c05260006102e052610260516102c0511015612124576102605160256101605160e05260c052604060c0206101405160e05260c052604060c0205561024051610260516102c05180821061295457808203905090508082028215828483041417156129545780905090509050670de0b6b3a7640000808204905090506102e0525b60266101405160e05260c052604060c0206101605160e05260c052604060c02054610300526103005160801c6102e0518181830110612954578082019050905061032052600061032051111561234c576103005170010000000000000000000000000000000080820690509050610340526101c0511561230157600060046103c0527fa9059cbb000000000000000000000000000000000000000000000000000000006103e0526103c060048060208461042001018260208501600060045af15050805182019150506101e05160208261042001015260208101905061032051602082610420010152602081019050806104205261042090508051602001806104c08284600060045af11561295457505060206105806104c0516104e06000610160515af1156129545760203d8082111561225f5780612261565b815b90509050610560526105608051602001806103608284600060045af11561295457505060006103605118156122c3576103608060200151600082518060209013612954578091901261295457806020036101000a820490509050905015612954575b61034051610320518181830110612954578082019050905060266101405160e05260c052604060c0206101605160e05260c052604060c0205561234b565b60006102e051111561234a57610340516103205160801b8181830110612954578082019050905060266101405160e05260c052604060c0206101605160e05260c052604060c020555b5b5b5b60075461016051141561236e574260196101405160e05260c052604060c020555b610200515661239a575b6101e05260006101c0526101405261016052610180526101a0526000506123c3565b6000156123c2575b6101e0526101405261016052610180526101a0526101c0526000506123c3565b5b6101a05161020052600061022052600061014051181561243757600c6101405160e05260c052604060c02054610220526101805115612406576101a05115612409565b60005b156124365760246101405160e05260c052604060c0205461020052610200516124355761014051610200525b5b5b6101c051156124d6576101405161016051610180516101a0516101c0516101e05161020051610220516101405161024052600754610260526101605161028052610220516102a05260006102c052610200516102e0526102e0516102c0516102a05161028051610260516102405160065801611ee6565b61022052610200526101e0526101c0526101a0526101805261016052610140526000506125cf565b601a546102405261026060006008818352015b610240516102605114156124fc576125cc565b60016102605160088110156129545702601b0154610280526101406102a0525b6102a0515160206102a051016102a0526102a06102a051101561253e5761251c565b610140516102c052610280516102e0526101605161030052610220516103205261018051610340526102005161036052610360516103405161032051610300516102e0516102c05160065801611ee6565b6102806102a0525b6102a0515260206102a051036102a0526101406102a051106125b857612597565b6000505b81516001018083528114156124e9575b50505b6101e051565b6101a052610140526101605261018052600d546101c0526000610180511815612842576000601a5414156101e0526101e05115612675576101405161016051610180516101a0516101c0516101e05161014051610200526101c051610220526000610240526000610260526102605161024051610220516102005160065801612378565b6101e0526101c0526101a0526101805261016052610140526000505b600c6101405160e05260c052604060c020546101805180821061295457808203905090506102005261020051600c6101405160e05260c052604060c020556101405161016051610180516101a0516101c0516101e05161020051610140516102205261020051610240526101c0516102605261026051610240516102205160065801611ccc565b610200526101e0526101c0526101a0526101805261016052610140526000506101e05115612795576101405161016051610180516101a0516101c0516101e0516102005161016051610220526101c051610240526000610260526000610280526102805161026051610240516102205160065801612378565b610200526101e0526101c0526101a0526101805261016052610140526000505b600c6101605160e05260c052604060c0205461018051818183011061295457808201905090506102005261020051600c6101605160e05260c052604060c020556101405161016051610180516101a0516101c0516101e05161020051610160516102205261020051610240526101c0516102605261026051610240516102205160065801611ccc565b610200526101e0526101c0526101a05261018052610160526101405260005061290d565b6101405161016051610180516101a0516101c051610140516101e0526101c0516102005260403661022037600161026052610260516102405161022051610200516101e051600658016123a2565b6101c0526101a0526101805261016052610140526000506101405161016051610180516101a0516101c051610160516101e0526101c0516102005260403661022037600161026052610260516102405161022051610200516101e051600658016123a2565b6101c0526101a0526101805261016052610140526000505b61016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6101e080808061018051815250506020905090506101e0a36101a051565b600080fd5b61001061296903610010600039610010612969036000f35b600080fd
Deployed Bytecode
0x600436101561000d57611cc6565b600035601c52600051346129545763819dc9fb81141561037b5760043560a01c6129545760243560a01c6129545760443560a01c6129545760643560a01c6129545760843560a01c6129545760a43560a01c6129545760c43560a01c61295457603a60e43560040161014037601a60e435600401351161295457602a54612954576001602a556000602435181561295457600060443518156129545760006064351815612954576000608435181561295457600060a435181561295457600060c435181561295457602435602755600435600a556020610200600463313ce5676101a0526101bc6004355afa1561295457601f3d11156129545760005061020051600b556000600a6101a0527f5374616b652044414f20000000000000000000000000000000000000000000006101c0526101a0600a8060208461026001018260208501600060045af1505080518201915050610140601a8060208461026001018260208501600060045af15050805182019150506006610200527f20476175676500000000000000000000000000000000000000000000000000006102205261020060068060208461026001018260208501600060045af15050805182019150508061026052610260905080600f602082510161012060006003818352015b8261012051602002111561020057610222565b61012051602002850151610120518501555b81516001018083528114156101ed575b505050505050600060026101a0527f73640000000000000000000000000000000000000000000000000000000000006101c0526101a060028060208461026001018260208501600060045af1505080518201915050610140601a8060208461026001018260208501600060045af15050805182019150506006610200527f2d676175676500000000000000000000000000000000000000000000000000006102205261020060068060208461026001018260208501600060045af150508051820191505080610260526102609050806013602082510161012060006003818352015b8261012051602002111561031757610339565b61012051602002850151610120518501555b8151600101808352811415610304575b50505050505060443560075560643560085560843560095560c435602b5560a4356001602360443560e05260c052604060c0200155604435601b556001601a55005b63313ce56781141561039357600b5460005260206000f35b634b82009381141561044d5760043560a01c6129545760043533141561295457600d5461014052610140516004356101605261014051610180526040366101a03760016101e0526101e0516101c0516101a0516101805161016051600658016123a2565b610140526000506101405160043561016052600c60043560e05260c052604060c0205461018052610140516101a0526101a051610180516101605160065801611ccc565b61014052600050600160005260206000f35b63e77e74378114156104ae5760043560a01c6129545760243560a01c61295457602660043560e05260c052604060c02060243560e05260c052604060c020547001000000000000000000000000000000008082069050905060005260206000f35b6333fd6f748114156106ae5760043560a01c6129545760243560a01c612954576005602360243560e05260c052604060c020015461014052600d5461016052600c60043560e05260c052604060c0205461018052600754602435141561052b5760185461016052601760043560e05260c052604060c02054610180525b600061016051181561060757426002602360243560e05260c052604060c02001548082111561055a578061055c565b815b905090506101a0526101a0516004602360243560e05260c052604060c020015480821061295457808203905090506101c05261014080516101c0516003602360243560e05260c052604060c02001548082028215828483041417156129545780905090509050670de0b6b3a764000080820282158284830414171561295457809050905090506101605180801561295457820490509050818183011061295457808201905090508152505b602560243560e05260c052604060c02060043560e05260c052604060c020546101a05261018051610140516101a05180821061295457808203905090508082028215828483041417156129545780905090509050670de0b6b3a7640000808204905090506101c052602660043560e05260c052604060c02060243560e05260c052604060c0205460801c6101c0518181830110612954578082019050905060005260206000f35b63bdf981168114156106d85760043560a01c6129545760043560243360e05260c052604060c02055005b63895ef6da8114156107005760043560a01c6129545733602754141561295457600435602b55005b63e6f1daf281141561071c573361014052600061016052610785565b6384e9bd7e8114156107485760006101605260043560a01c612954576020600461014037600050610785565b639faceb1b8114156107805760043560a01c61295457602060046101403760243560a01c612954576020602461016037600050610785565b6107f9565b60005461295457600160005560006101605118156107a95733610140511415612954575b61014051610160516101405161018052600d546101a05260016101c052610160516101e0526101e0516101c0516101a0516101805160065801612378565b61016052610140526000506000600055005b63449a533a8114156108865760015461295457600160015560043560a01c6129545760243560a01c61295457336029541415612954576004356024351815610848576029546024351415612954575b60043561014052600d54610160526001610180526024356101a0526101a05161018051610160516101405160065801612378565b6000506000600155005b6396c55175811415610a835760043560a01c61295457601960043560e05260c052604060c020546101405260206102c0604463da020a1861022052600435610240526020610200602463010ae757610180526004356101a05261019c6008545afa1561295457601f3d111561295457600050610200516102605261023c6008545afa1561295457601f3d1115612954576000506102c05161016052600c60043560e05260c052604060c020546101805260206102c060246370a08231610240526004356102605261025c6008545afa1561295457601f3d1115612954576000506102c05161097557600161097f565b6101405161016051115b5b15612954576101805160288082028215828483041417156129545780905090509050606480820490509050601760043560e05260c052604060c02054111561295457600d546101a0526101405161016051610180516101a0516004356101c0526101a0516101e052604036610200376001610240526102405161022051610200516101e0516101c051600658016123a2565b6101a0526101805261016052610140526000506101405161016051610180516101a0516004356101c052600c60043560e05260c052604060c020546101e0526101a05161020052610200516101e0516101c05160065801611ccc565b6101a052610180526101605261014052600050005b63b6b55f25811415610a9f573361014052600061016052610b08565b636e553f65811415610acb5760006101605260243560a01c612954576020602461014037600050610b08565b6383df6747811415610b035760243560a01c61295457602060246101403760443560011c612954576020604461016037600050610b08565b610d74565b600254612954576001600255602b5433141561295457600d546101805260006004351815610c9d576000601a5414156101a0526101a05115610b9f576101405161016051610180516101a051610140516101c052610180516101e052610160516102005260006102205261022051610200516101e0516101c05160065801612378565b6101a0526101805261016052610140526000505b610180805160043581818301106129545780820190509050815250600c6101405160e05260c052604060c02054600435818183011061295457808201905090506101c0526101c051600c6101405160e05260c052604060c0205561018051600d556101405161016051610180516101a0516101c051610140516101e0526101c05161020052610180516102205261022051610200516101e05160065801611ccc565b6101c0526101a05261018052610160526101405260005060206102a060646323b872dd6101e05233610200523061022052600435610240526101fc6000600a545af11561295457601f3d1115612954576000506102a050610cf3565b610140516101605161018051610140516101a052610180516101c0526040366101e03760016102205261022051610200516101e0516101c0516101a051600658016123a2565b6101805261016052610140526000505b610140517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c6101a0808080600435815250506020905090506101a0a26101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6101a0808080600435815250506020905090506101a0a36000600255005b62f714ce811415610d8a57600061014052610db4565b62ebf5dd811415610daf5760443560011c612954576020604461014037600050610db4565b611000565b60035461295457600160035560243560a01c61295457602b5433141561295457600d546101605260006004351815610f36576000601a541415610180526101805115610e4c576101405161016051610180516024356101a052610160516101c052610140516101e052600061020052610200516101e0516101c0516101a05160065801612378565b6101805261016052610140526000505b61016080516004358082106129545780820390509050815250600c60243560e05260c052604060c0205460043580821061295457808203905090506101a0526101a051600c60243560e05260c052604060c0205561016051600d556101405161016051610180516101a0516024356101c0526101a0516101e0526101605161020052610200516101e0516101c05160065801611ccc565b6101a0526101805261016052610140526000506020610260604463a9059cbb6101c052336101e052600435610200526101dc6000600a545af11561295457601f3d11156129545760005061026050610f83565b610140516101605160243561018052610160516101a0526040366101c037600161020052610200516101e0516101c0516101a05161018051600658016123a2565b61016052610140526000505b6024357f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436461018080808060043581525050602090509050610180a26000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef61018080808060043581525050602090509050610180a36000600355005b63a9059cbb81141561105d5760045461295457600160045560043560a01c6129545733610140526004356101605260243561018052610180516101605161014051600658016125d5565b6000506001600052600060045560206000f35b6323b872dd81141561114d5760055461295457600160055560043560a01c6129545760243560a01c61295457600e60043560e05260c052604060c0203360e05260c052604060c02054610140527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61014051181561110857610140516044358082106129545780820390509050600e60043560e05260c052604060c0203360e05260c052604060c020555b6101405160043561016052602435610180526044356101a0526101a0516101805161016051600658016125d5565b610140526000506001600052600060055560206000f35b63095ea7b38114156111ca5760043560a01c61295457602435600e3360e05260c052604060c02060043560e05260c052604060c02055600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92561014080808060243581525050602090509050610140a3600160005260206000f35b633950935181141561127d5760043560a01c61295457600e3360e05260c052604060c02060043560e05260c052604060c02054602435818183011061295457808201905090506101405261014051600e3360e05260c052604060c02060043560e05260c052604060c02055600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256101608080806101405181525050602090509050610160a3600160005260206000f35b63a457c2d781141561132e5760043560a01c61295457600e3360e05260c052604060c02060043560e05260c052604060c0205460243580821061295457808203905090506101405261014051600e3360e05260c052604060c02060043560e05260c052604060c02055600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256101608080806101405181525050602090509050610160a3600160005260206000f35b63e8de0d4d8114156113cc5760043560a01c6129545760243560a01c6129545760275433141561295457601a54610140526008610140511015612954576001602360043560e05260c052604060c0200154612954576024356001602360043560e05260c052604060c020015560043560016101405160088110156129545702601b015561014051600181818301106129545780820190509050601a55005b63058a3a248114156114525760043560a01c6129545760243560a01c612954576001602360043560e05260c052604060c0200154610140526101405133141561141657600161141c565b60275433145b5b156129545760006101405118156129545760006024351815612954576024356001602360043560e05260c052604060c0200155005b6329de95bf8114156114855760043560a01c61295457602754331415612954576000600435181561295457600435602955005b6393f7aa678114156117715760065461295457600160065560043560a01c612954576001602360043560e05260c052604060c020015433141561295457600061014052600d546101605260006101805260006101a0526101a05161018051610160516101405160065801612378565b600050600060046101a0527f23b872dd000000000000000000000000000000000000000000000000000000006101c0526101a060048060208461020001018260208501600060045af15050805182019150503360208261020001015260208101905030602082610200010152602081019050602435602082610200010152602081019050806102005261020090508051602001806102c08284600060045af11561295457505060206103a06102c0516102e060006004355af1156129545760203d808211156115c357806115c5565b815b90509050610380526103808051602001806101408284600060045af1156129545750506000610140511815611627576101408060200151600082518060209013612954578091901261295457806020036101000a820490509050905015612954575b6002602360043560e05260c052604060c02001546101a0526101a05142106116705760243562093a80808204905090506003602360043560e05260c052604060c02001556116f1565b6101a0514280821061295457808203905090506101c0526101c0516003602360043560e05260c052604060c020015480820282158284830414171561295457809050905090506101e0526024356101e0518181830110612954578082019050905062093a80808204905090506003602360043560e05260c052604060c02001555b426004602360043560e05260c052604060c02001554262093a80818183011061295457808201905090506002602360043560e05260c052604060c02001556004357f656e648408f08a8f933b2d1375eb24c442eafd5537451a75561a264a569639226101c0808080602435815250506020905090506101c0a26000600655005b636b441a408114156117e25760043560a01c612954576027543314156129545760006004351815612954576004356028556004356027557f2f56810a6bf40af059b96d3aea4db54081f378029a518390491093a7b67032e961014080808060043581525050602090509050610140a1005b63e5ea47b881141561184257602854610140526101405133141561295457610140516027557febee2d5739011062cb4f14113f3b36bf0ffe3da5c0568f64189d1012a11891056101608080806101405181525050602090509050610160a1005b63ba32c61981141561185a5760075460005260206000f35b63dfe050318114156118725760085460005260206000f35b63dca6e0bc81141561188a5760095460005260206000f35b632dc7d74c8114156118a257600a5460005260206000f35b63178f31858114156118ba57600b5460005260206000f35b6370a082318114156118ea5760043560a01c61295457600c60043560e05260c052604060c0205460005260206000f35b6318160ddd81141561190257600d5460005260206000f35b63dd62ed3e81141561194a5760043560a01c6129545760243560a01c61295457600e60043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b6306fdde038114156119e757600f80610180602082540161012060006003818352015b82610120516020021115611980576119a2565b61012051850154610120516020028501525b815160010180835281141561196d575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6395d89b41811415611a8457601380610180602082540161012060006003818352015b82610120516020021115611a1d57611a3f565b61012051850154610120516020028501525b8151600101808352811415611a0a575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f35b6313ecb1ca811415611ab45760043560a01c61295457601760043560e05260c052604060c0205460005260206000f35b6317e28089811415611acc5760185460005260206000f35b639bd324f2811415611afc5760043560a01c61295457601960043560e05260c052604060c0205460005260206000f35b63963c94b9811415611b1457601a5460005260206000f35b6354c49fe9811415611b3c57600160043560088110156129545702601b015460005260206000f35b6348e9c65e811415611bd45760043560a01c61295457602360043560e05260c052604060c0206101408080808454815250506020810190508080600185015481525050602081019050808060028501548152505060208101905080806003850154815250506020810190508080600485015481525050602081019050808060058501548152505060c09050905060c05260c051610140f35b6301ddabf1811415611c045760043560a01c61295457602460043560e05260c052604060c0205460005260206000f35b63f05cc058811415611c4c5760043560a01c6129545760243560a01c61295457602560043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f35b63f851a440811415611c645760275460005260206000f35b6317f7182a811415611c7c5760285460005260206000f35b63d379be23811415611c945760295460005260206000f35b63158ef93e811415611cac57602a5460005260206000f35b63fbfa77cf811415611cc457602b5460005260206000f35b505b60006000fd5b6101a0526101405261016052610180526020610260602463bbf7408a6101e05261014051610200526101fc6009545afa1561295457601f3d111561295457600050610260516101c052602061026060046318160ddd6102005261021c6008545afa1561295457601f3d111561295457600050610260516101e05261016051602880820282158284830414171561295457809050905090506064808204905090506102005260006101e0511115611de7576102008051610180516101c05180820282158284830414171561295457809050905090506101e05180801561295457820490509050603c8082028215828483041417156129545780905090509050606480820490509050818183011061295457808201905090508152505b610160516102005180821115611dfd5780611dff565b815b905090506102005260176101405160e05260c052604060c02054610220526102005160176101405160e05260c052604060c02055601854610200518181830110612954578082019050905061022051808210612954578082039050905061024052610240516018557f7ecd84343f76a23d2227290e0288da3251b045541698e575a5515af4f04197a361026080808061014051815250506020810190508080610160518152505060208101905080806101805181525050602081019050808061020051815250506020810190508080610240518152505060a090509050610260a16101a051565b610200526101405261016052610180526101a0526101c0526101e05261018051610220526101a05161024052600754610160511415611f3d576018546102205260176101405160e05260c052604060c02054610240525b600560236101605160e05260c052604060c02001546102605242600260236101605160e05260c052604060c020015480821115611f7a5780611f7c565b815b905090506102805261028051600460236101605160e05260c052604060c020015480821061295457808203905090506102a05260006102a05118156120745761028051600460236101605160e05260c052604060c020015560006102205118156120735761026080516102a051600360236101605160e05260c052604060c02001548082028215828483041417156129545780905090509050670de0b6b3a7640000808202821582848304141715612954578090509050905061022051808015612954578204905090508181830110612954578082019050905081525061026051600560236101605160e05260c052604060c02001555b5b600061014051181561234d5760256101605160e05260c052604060c0206101405160e05260c052604060c020546102c05260006102e052610260516102c0511015612124576102605160256101605160e05260c052604060c0206101405160e05260c052604060c0205561024051610260516102c05180821061295457808203905090508082028215828483041417156129545780905090509050670de0b6b3a7640000808204905090506102e0525b60266101405160e05260c052604060c0206101605160e05260c052604060c02054610300526103005160801c6102e0518181830110612954578082019050905061032052600061032051111561234c576103005170010000000000000000000000000000000080820690509050610340526101c0511561230157600060046103c0527fa9059cbb000000000000000000000000000000000000000000000000000000006103e0526103c060048060208461042001018260208501600060045af15050805182019150506101e05160208261042001015260208101905061032051602082610420010152602081019050806104205261042090508051602001806104c08284600060045af11561295457505060206105806104c0516104e06000610160515af1156129545760203d8082111561225f5780612261565b815b90509050610560526105608051602001806103608284600060045af11561295457505060006103605118156122c3576103608060200151600082518060209013612954578091901261295457806020036101000a820490509050905015612954575b61034051610320518181830110612954578082019050905060266101405160e05260c052604060c0206101605160e05260c052604060c0205561234b565b60006102e051111561234a57610340516103205160801b8181830110612954578082019050905060266101405160e05260c052604060c0206101605160e05260c052604060c020555b5b5b5b60075461016051141561236e574260196101405160e05260c052604060c020555b610200515661239a575b6101e05260006101c0526101405261016052610180526101a0526000506123c3565b6000156123c2575b6101e0526101405261016052610180526101a0526101c0526000506123c3565b5b6101a05161020052600061022052600061014051181561243757600c6101405160e05260c052604060c02054610220526101805115612406576101a05115612409565b60005b156124365760246101405160e05260c052604060c0205461020052610200516124355761014051610200525b5b5b6101c051156124d6576101405161016051610180516101a0516101c0516101e05161020051610220516101405161024052600754610260526101605161028052610220516102a05260006102c052610200516102e0526102e0516102c0516102a05161028051610260516102405160065801611ee6565b61022052610200526101e0526101c0526101a0526101805261016052610140526000506125cf565b601a546102405261026060006008818352015b610240516102605114156124fc576125cc565b60016102605160088110156129545702601b0154610280526101406102a0525b6102a0515160206102a051016102a0526102a06102a051101561253e5761251c565b610140516102c052610280516102e0526101605161030052610220516103205261018051610340526102005161036052610360516103405161032051610300516102e0516102c05160065801611ee6565b6102806102a0525b6102a0515260206102a051036102a0526101406102a051106125b857612597565b6000505b81516001018083528114156124e9575b50505b6101e051565b6101a052610140526101605261018052600d546101c0526000610180511815612842576000601a5414156101e0526101e05115612675576101405161016051610180516101a0516101c0516101e05161014051610200526101c051610220526000610240526000610260526102605161024051610220516102005160065801612378565b6101e0526101c0526101a0526101805261016052610140526000505b600c6101405160e05260c052604060c020546101805180821061295457808203905090506102005261020051600c6101405160e05260c052604060c020556101405161016051610180516101a0516101c0516101e05161020051610140516102205261020051610240526101c0516102605261026051610240516102205160065801611ccc565b610200526101e0526101c0526101a0526101805261016052610140526000506101e05115612795576101405161016051610180516101a0516101c0516101e0516102005161016051610220526101c051610240526000610260526000610280526102805161026051610240516102205160065801612378565b610200526101e0526101c0526101a0526101805261016052610140526000505b600c6101605160e05260c052604060c0205461018051818183011061295457808201905090506102005261020051600c6101605160e05260c052604060c020556101405161016051610180516101a0516101c0516101e05161020051610160516102205261020051610240526101c0516102605261026051610240516102205160065801611ccc565b610200526101e0526101c0526101a05261018052610160526101405260005061290d565b6101405161016051610180516101a0516101c051610140516101e0526101c0516102005260403661022037600161026052610260516102405161022051610200516101e051600658016123a2565b6101c0526101a0526101805261016052610140526000506101405161016051610180516101a0516101c051610160516101e0526101c0516102005260403661022037600161026052610260516102405161022051610200516101e051600658016123a2565b6101c0526101a0526101805261016052610140526000505b61016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6101e080808061018051815250506020905090506101e0a36101a051565b600080fd
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.