Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Idle Token | 10079610 | 2129 days ago | IN | 0 ETH | 0.00044278 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
IdleCompound
Compiler Version
v0.5.16+commit.9c3226ce
Optimization Enabled:
Yes with 45000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2020-05-17
*/
pragma solidity 0.5.16;
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);
}
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.
*
* _Available since v2.4.0._
*/
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.
*
* _Available since v2.4.0._
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
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.
*
* _Available since v2.4.0._
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* This test is non-exhaustive, and there may be false-negatives: during the
* execution of a contract's constructor, its address will be reported as
* not containing a contract.
*
* IMPORTANT: It is unsafe to assume that an address for which this
* function returns false is an externally-owned account (EOA) and not a
* contract.
*/
function isContract(address account) internal view returns (bool) {
// This method relies in extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly { codehash := extcodehash(account) }
return (codehash != 0x0 && codehash != accountHash);
}
/**
* @dev Converts an `address` into `address payable`. Note that this is
* simply a type cast: the actual underlying value is not changed.
*
* _Available since v2.4.0._
*/
function toPayable(address account) internal pure returns (address payable) {
return address(uint160(account));
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*
* _Available since v2.4.0._
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-call-value
(bool success, ) = recipient.call.value(amount)("");
require(success, "Address: unable to send value, recipient may have reverted");
}
}
library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
// solhint-disable-next-line max-line-length
require((value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).add(value);
callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves.
// A Solidity high level call has three parts:
// 1. The target address is checked to verify it contains contract code
// 2. The call itself is made, and success asserted
// 3. The return value is decoded, which in turn checks the size of the returned data.
// solhint-disable-next-line max-line-length
require(address(token).isContract(), "SafeERC20: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = address(token).call(data);
require(success, "SafeERC20: low-level call failed");
if (returndata.length > 0) { // Return data is optional
// solhint-disable-next-line max-line-length
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
function _msgData() internal view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
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 {
_owner = _msgSender();
emit OwnershipTransferred(address(0), _owner);
}
/**
* @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(isOwner(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Returns true if the caller is the current owner.
*/
function isOwner() public view returns (bool) {
return _msgSender() == _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 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 onlyOwner {
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/
function _transferOwnership(address newOwner) internal {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
interface CERC20 {
function mint(uint256 mintAmount) external returns (uint256);
function redeem(uint256 redeemTokens) external returns (uint256);
function exchangeRateStored() external view returns (uint256);
function supplyRatePerBlock() external view returns (uint256);
function borrowRatePerBlock() external view returns (uint256);
function totalReserves() external view returns (uint256);
function getCash() external view returns (uint256);
function totalBorrows() external view returns (uint256);
function reserveFactorMantissa() external view returns (uint256);
function interestRateModel() external view returns (address);
}
interface ILendingProtocol {
function mint() external returns (uint256);
function redeem(address account) external returns (uint256);
function nextSupplyRate(uint256 amount) external view returns (uint256);
function nextSupplyRateWithParams(uint256[] calldata params) external view returns (uint256);
function getAPR() external view returns (uint256);
function getPriceInToken() external view returns (uint256);
function token() external view returns (address);
function underlying() external view returns (address);
function availableLiquidity() external view returns (uint256);
}
interface WhitePaperInterestRateModel {
function getBorrowRate(uint256 cash, uint256 borrows, uint256 _reserves) external view returns (uint256, uint256);
function getSupplyRate(uint256 cash, uint256 borrows, uint256 reserves, uint256 reserveFactorMantissa) external view returns (uint256);
function multiplier() external view returns (uint256);
function baseRate() external view returns (uint256);
function blocksPerYear() external view returns (uint256);
function dsrPerBlock() external view returns (uint256);
}
contract IdleCompound is ILendingProtocol, Ownable {
using SafeERC20 for IERC20;
using SafeMath for uint256;
// protocol token (cToken) address
address public token;
// underlying token (token eg DAI) address
address public underlying;
address public idleToken;
uint256 public blocksPerYear;
/**
* @param _token : cToken address
* @param _underlying : underlying token (eg DAI) address
*/
constructor(address _token, address _underlying) public {
require(_token != address(0) && _underlying != address(0), 'COMP: some addr is 0');
token = _token;
underlying = _underlying;
blocksPerYear = 2371428;
IERC20(_underlying).safeApprove(_token, uint256(-1));
}
/**
* Throws if called by any account other than IdleToken contract.
*/
modifier onlyIdle() {
require(msg.sender == idleToken, "Ownable: caller is not IdleToken");
_;
}
// onlyOwner
/**
* sets idleToken address
* NOTE: can be called only once. It's not on the constructor because we are deploying this contract
* after the IdleToken contract
* @param _idleToken : idleToken address
*/
function setIdleToken(address _idleToken)
external onlyOwner {
require(idleToken == address(0), "idleToken addr already set");
require(_idleToken != address(0), "_idleToken addr is 0");
idleToken = _idleToken;
}
/**
* sets blocksPerYear address
*
* @param _blocksPerYear : avg blocks per year
*/
function setBlocksPerYear(uint256 _blocksPerYear)
external onlyOwner {
require(_blocksPerYear != 0, "_blocksPerYear is 0");
blocksPerYear = _blocksPerYear;
}
// end onlyOwner
/**
* Calculate next supply rate for Compound, given an `_amount` supplied (last array param)
* and all other params supplied. See `info_compound.md` for more info
* on calculations.
*
* @param params : array with all params needed for calculation (see below)
* @return : yearly net rate
*/
function nextSupplyRateWithParams(uint256[] memory params)
public view
returns (uint256) {
/*
This comment is a reference for params name
This gives stack too deep so check implementation below
uint256 j = params[0]; // 10 ** 18;
uint256 a = params[1]; // white.baseRate(); // from WhitePaper
uint256 b = params[2]; // cToken.totalBorrows();
uint256 c = params[3]; // white.multiplier(); // from WhitePaper
uint256 d = params[4]; // cToken.totalReserves();
uint256 e = params[5]; // j.sub(cToken.reserveFactorMantissa());
uint256 s = params[6]; // cToken.getCash();
uint256 k = params[7]; // white.blocksPerYear();
uint256 f = params[8]; // 100;
uint256 x = params[9]; // newAmountSupplied;
// q = ((((a + (b*c)/(b + s + x)) / k) * e * b / (s + x + b - d)) / j) * k * f -> to get yearly rate
nextRate = a.add(b.mul(c).div(b.add(s).add(x))).div(k).mul(e).mul(b).div(
s.add(x).add(b).sub(d)
).div(j).mul(k).mul(f); // to get the yearly rate
*/
// (b*c)/(b + s + x)
uint256 inter1 = params[2].mul(params[3]).div(params[2].add(params[6]).add(params[9]));
// (s + x + b - d)
uint256 inter2 = params[6].add(params[9]).add(params[2]).sub(params[4]);
// ((a + (b*c)/(b + s + x)) / k) * e
uint256 inter3 = params[1].add(inter1).div(params[7]).mul(params[5]);
// ((((a + (b*c)/(b + s + x)) / k) * e * b / (s + x + b - d)) / j) * k * f
return inter3.mul(params[2]).div(inter2).div(params[0]).mul(params[7]).mul(params[8]);
}
/**
* Calculate next supply rate for Compound, given an `_amount` supplied
*
* @param _amount : new underlying amount supplied (eg DAI)
* @return : yearly net rate
*/
function nextSupplyRate(uint256 _amount)
external view
returns (uint256) {
CERC20 cToken = CERC20(token);
WhitePaperInterestRateModel white = WhitePaperInterestRateModel(cToken.interestRateModel());
uint256[] memory params = new uint256[](10);
params[0] = 10**18; // j
params[1] = white.baseRate(); // a
params[2] = cToken.totalBorrows(); // b
params[3] = white.multiplier(); // c
params[4] = cToken.totalReserves(); // d
params[5] = params[0].sub(cToken.reserveFactorMantissa()); // e
params[6] = cToken.getCash(); // s
params[7] = blocksPerYear; // k
params[8] = 100; // f
params[9] = _amount; // x
// q = ((((a + (b*c)/(b + s + x)) / k) * e * b / (s + x + b - d)) / j) * k * f -> to get yearly rate
return nextSupplyRateWithParams(params);
}
/**
* @return current price of cToken in underlying
*/
function getPriceInToken()
external view
returns (uint256) {
return CERC20(token).exchangeRateStored();
}
/**
* @return apr : current yearly net rate
*/
function getAPR()
external view
returns (uint256 apr) {
CERC20 cToken = CERC20(token);
uint256 cRate = cToken.supplyRatePerBlock(); // interest % per block
apr = cRate.mul(blocksPerYear).mul(100);
}
/**
* Gets all underlying tokens in this contract and mints cTokens
* tokens are then transferred to msg.sender
* NOTE: underlying tokens needs to be sended here before calling this
*
* @return cTokens minted
*/
function mint()
external onlyIdle
returns (uint256 cTokens) {
uint256 balance = IERC20(underlying).balanceOf(address(this));
if (balance == 0) {
return cTokens;
}
// get a handle for the corresponding cToken contract
CERC20 _cToken = CERC20(token);
// mint the cTokens and assert there is no error
require(_cToken.mint(balance) == 0, "Error minting cTokens");
// cTokens are now in this contract
cTokens = IERC20(token).balanceOf(address(this));
// transfer them to the caller
IERC20(token).safeTransfer(msg.sender, cTokens);
}
/**
* Gets all cTokens in this contract and redeems underlying tokens.
* underlying tokens are then transferred to `_account`
* NOTE: cTokens needs to be sended here before calling this
*
* @return underlying tokens redeemd
*/
function redeem(address _account)
external onlyIdle
returns (uint256 tokens) {
// Funds needs to be sended here before calling this
CERC20 _cToken = CERC20(token);
IERC20 _underlying = IERC20(underlying);
// redeem all underlying sent in this contract
require(_cToken.redeem(IERC20(token).balanceOf(address(this))) == 0, "Error redeeming cTokens");
tokens = _underlying.balanceOf(address(this));
_underlying.safeTransfer(_account, tokens);
}
function availableLiquidity() external view returns (uint256) {
return CERC20(token).getCash();
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_underlying","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":true,"inputs":[],"name":"availableLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"blocksPerYear","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getAPR","outputs":[{"internalType":"uint256","name":"apr","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getPriceInToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"idleToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"cTokens","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"nextSupplyRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256[]","name":"params","type":"uint256[]"}],"name":"nextSupplyRateWithParams","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"tokens","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_blocksPerYear","type":"uint256"}],"name":"setBlocksPerYear","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_idleToken","type":"address"}],"name":"setIdleToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b506040516200247f3803806200247f833981810160405260408110156200003757600080fd5b508051602090910151620000536001600160e01b036200016916565b600080546001600160a01b0319166001600160a01b03928316178082556040519216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36001600160a01b03821615801590620000bc57506001600160a01b03811615155b6200010e576040805162461bcd60e51b815260206004820152601460248201527f434f4d503a20736f6d6520616464722069732030000000000000000000000000604482015290519081900360640190fd5b600180546001600160a01b038085166001600160a01b03199283161790925560028054928416929091168217905562242f6460045562000161908360001962001d026200016d602090811b91909117901c565b5050620004a3565b3390565b801580620001f7575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015620001c757600080fd5b505afa158015620001dc573d6000803e3d6000fd5b505050506040513d6020811015620001f357600080fd5b5051155b620002345760405162461bcd60e51b8152600401808060200182810382526036815260200180620024496036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b179091526200028c9185916200029116565b505050565b620002b0826001600160a01b03166200046660201b62001cc61760201c565b62000302576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310620003425780518252601f19909201916020918201910162000321565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114620003a6576040519150601f19603f3d011682016040523d82523d6000602084013e620003ab565b606091505b50915091508162000403576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511562000460578080602001905160208110156200042157600080fd5b5051620004605760405162461bcd60e51b815260040180806020018281038252602a8152602001806200241f602a913960400191505060405180910390fd5b50505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906200049b5750808214155b949350505050565b611f6c80620004b36000396000f3fe608060405234801561001057600080fd5b506004361061011b5760003560e01c806393fd9219116100b2578063c89d5b8b11610081578063e5fa2b7011610066578063e5fa2b70146102e7578063f2fde38b14610304578063fc0c546a146103375761011b565b8063c89d5b8b146102c2578063ccdd0149146102ca5761011b565b806393fd9219146101b157806395a2251f1461025457806395e5819114610287578063a385fb96146102ba5761011b565b8063715018a6116100ee578063715018a61461017b57806374375359146101855780638da5cb5b1461018d5780638f32d59b146101955761011b565b806302bbce46146101205780631249c58b1461013a5780632dd60c5e146101425780636f307dc314610173575b600080fd5b61012861033f565b60408051918252519081900360200190f35b6101286103dc565b61014a6106eb565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61014a610707565b610183610723565b005b610128610805565b61014a610870565b61019d61088c565b604080519115158252519081900360200190f35b610128600480360360208110156101c757600080fd5b8101906020810181356401000000008111156101e257600080fd5b8201836020820111156101f457600080fd5b8035906020019184602083028401116401000000008311171561021657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506108ca945050505050565b6101286004803603602081101561026a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610aaa565b6101836004803603602081101561029d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610d97565b610128610f58565b610128610f5e565b610128600480360360208110156102e057600080fd5b503561101e565b610183600480360360208110156102fd57600080fd5b50356114d0565b6101836004803603602081101561031a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115b4565b61014a611633565b600154604080517f182df0f5000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff169163182df0f5916004808301926020929190829003018186803b1580156103aa57600080fd5b505afa1580156103be573d6000803e3d6000fd5b505050506040513d60208110156103d457600080fd5b505190505b90565b60035460009073ffffffffffffffffffffffffffffffffffffffff16331461046557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f742049646c65546f6b656e604482015290519081900360640190fd5b600254604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b1580156104d657600080fd5b505afa1580156104ea573d6000803e3d6000fd5b505050506040513d602081101561050057600080fd5b505190508061050f57506103d9565b600154604080517fa0712d6800000000000000000000000000000000000000000000000000000000815260048101849052905173ffffffffffffffffffffffffffffffffffffffff90921691829163a0712d689160248083019260209291908290030181600087803b15801561058457600080fd5b505af1158015610598573d6000803e3d6000fd5b505050506040513d60208110156105ae57600080fd5b50511561061c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4572726f72206d696e74696e672063546f6b656e730000000000000000000000604482015290519081900360640190fd5b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b15801561068d57600080fd5b505afa1580156106a1573d6000803e3d6000fd5b505050506040513d60208110156106b757600080fd5b50516001549093506106e69073ffffffffffffffffffffffffffffffffffffffff16338563ffffffff61164f16565b505090565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b61072b61088c565b61079657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b600154604080517f3b1d21a2000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691633b1d21a2916004808301926020929190829003018186803b1580156103aa57600080fd5b60005473ffffffffffffffffffffffffffffffffffffffff1690565b6000805473ffffffffffffffffffffffffffffffffffffffff166108ae6116e1565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b60008061097661092f846009815181106108e057fe5b6020026020010151610923866006815181106108f857fe5b60200260200101518760028151811061090d57fe5b60200260200101516116e590919063ffffffff16565b9063ffffffff6116e516565b61096a8560038151811061093f57fe5b60200260200101518660028151811061095457fe5b602002602001015161176290919063ffffffff16565b9063ffffffff6117d516565b905060006109db8460048151811061098a57fe5b60200260200101516109cf866002815181106109a257fe5b6020026020010151610923886009815181106109ba57fe5b60200260200101518960068151811061090d57fe5b9063ffffffff61181716565b90506000610a2c856005815181106109ef57fe5b6020026020010151610a2087600781518110610a0757fe5b602002602001015161096a878a60018151811061090d57fe5b9063ffffffff61176216565b9050610aa185600881518110610a3e57fe5b6020026020010151610a2087600781518110610a5657fe5b6020026020010151610a2089600081518110610a6e57fe5b602002602001015161096a8861096a8d600281518110610a8a57fe5b60200260200101518a61176290919063ffffffff16565b95945050505050565b60035460009073ffffffffffffffffffffffffffffffffffffffff163314610b3357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f742049646c65546f6b656e604482015290519081900360640190fd5b600154600254604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff9384169390921691839163db006a759183916370a08231916024808301926020929190829003018186803b158015610bb457600080fd5b505afa158015610bc8573d6000803e3d6000fd5b505050506040513d6020811015610bde57600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092525160248083019260209291908290030181600087803b158015610c3757600080fd5b505af1158015610c4b573d6000803e3d6000fd5b505050506040513d6020811015610c6157600080fd5b505115610ccf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4572726f722072656465656d696e672063546f6b656e73000000000000000000604482015290519081900360640190fd5b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8316916370a08231916024808301926020929190829003018186803b158015610d3b57600080fd5b505afa158015610d4f573d6000803e3d6000fd5b505050506040513d6020811015610d6557600080fd5b50519250610d9073ffffffffffffffffffffffffffffffffffffffff8216858563ffffffff61164f16565b5050919050565b610d9f61088c565b610e0a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff1615610e8f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f69646c65546f6b656e206164647220616c726561647920736574000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610f1157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5f69646c65546f6b656e20616464722069732030000000000000000000000000604482015290519081900360640190fd5b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60045481565b600154604080517fae9d70b0000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff16918391839163ae9d70b0916004808301926020929190829003018186803b158015610fcd57600080fd5b505afa158015610fe1573d6000803e3d6000fd5b505050506040513d6020811015610ff757600080fd5b505160045490915061101790606490610a2090849063ffffffff61176216565b9250505090565b600154604080517ff3fdb15a000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff16918391839163f3fdb15a916004808301926020929190829003018186803b15801561108d57600080fd5b505afa1580156110a1573d6000803e3d6000fd5b505050506040513d60208110156110b757600080fd5b505160408051600a8082526101608201909252919250606091906020820161014080388339019050509050670de0b6b3a7640000816000815181106110f857fe5b6020026020010181815250508173ffffffffffffffffffffffffffffffffffffffff16631f68f20a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561114a57600080fd5b505afa15801561115e573d6000803e3d6000fd5b505050506040513d602081101561117457600080fd5b505181518290600190811061118557fe5b6020026020010181815250508273ffffffffffffffffffffffffffffffffffffffff166347bd37186040518163ffffffff1660e01b815260040160206040518083038186803b1580156111d757600080fd5b505afa1580156111eb573d6000803e3d6000fd5b505050506040513d602081101561120157600080fd5b505181518290600290811061121257fe5b6020026020010181815250508173ffffffffffffffffffffffffffffffffffffffff16631b3ed7226040518163ffffffff1660e01b815260040160206040518083038186803b15801561126457600080fd5b505afa158015611278573d6000803e3d6000fd5b505050506040513d602081101561128e57600080fd5b505181518290600390811061129f57fe5b6020026020010181815250508273ffffffffffffffffffffffffffffffffffffffff16638f840ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156112f157600080fd5b505afa158015611305573d6000803e3d6000fd5b505050506040513d602081101561131b57600080fd5b505181518290600490811061132c57fe5b6020026020010181815250506113d08373ffffffffffffffffffffffffffffffffffffffff1663173b99046040518163ffffffff1660e01b815260040160206040518083038186803b15801561138157600080fd5b505afa158015611395573d6000803e3d6000fd5b505050506040513d60208110156113ab57600080fd5b5051825183906000906113ba57fe5b602002602001015161181790919063ffffffff16565b816005815181106113dd57fe5b6020026020010181815250508273ffffffffffffffffffffffffffffffffffffffff16633b1d21a26040518163ffffffff1660e01b815260040160206040518083038186803b15801561142f57600080fd5b505afa158015611443573d6000803e3d6000fd5b505050506040513d602081101561145957600080fd5b505181518290600690811061146a57fe5b6020026020010181815250506004548160078151811061148657fe5b6020026020010181815250506064816008815181106114a157fe5b60200260200101818152505084816009815181106114bb57fe5b602002602001018181525050610aa1816108ca565b6114d861088c565b61154357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b806115af57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f5f626c6f636b7350657259656172206973203000000000000000000000000000604482015290519081900360640190fd5b600455565b6115bc61088c565b61162757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61163081611859565b50565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526116dc908490611952565b505050565b3390565b60008282018381101561175957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6000826117715750600061175c565b8282028284828161177e57fe5b0414611759576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611eb76021913960400191505060405180910390fd5b600061175983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b96565b600061175983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611c52565b73ffffffffffffffffffffffffffffffffffffffff81166118c5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611e916026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6119718273ffffffffffffffffffffffffffffffffffffffff16611cc6565b6119dc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310611a4557805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611a08565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611aa7576040519150601f19603f3d011682016040523d82523d6000602084013e611aac565b606091505b509150915081611b1d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611b9057808060200190516020811015611b3957600080fd5b5051611b90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611ed8602a913960400191505060405180910390fd5b50505050565b60008183611c3c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c01578181015183820152602001611be9565b50505050905090810190601f168015611c2e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611c4857fe5b0495945050505050565b60008184841115611cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315611c01578181015183820152602001611be9565b505050900390565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590611cfa5750808214155b949350505050565b801580611dae5750604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611d8057600080fd5b505afa158015611d94573d6000803e3d6000fd5b505050506040513d6020811015611daa57600080fd5b5051155b611e03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526036815260200180611f026036913960400191505060405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790526116dc90849061195256fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a72315820c98a09c1e37772d14d283b4c3d17fdf6c7318f5922b5f73fadadfcd6848efc4c64736f6c634300051000325361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000000039aa39c021dfbae8fac545936693ac917d5e7563000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061011b5760003560e01c806393fd9219116100b2578063c89d5b8b11610081578063e5fa2b7011610066578063e5fa2b70146102e7578063f2fde38b14610304578063fc0c546a146103375761011b565b8063c89d5b8b146102c2578063ccdd0149146102ca5761011b565b806393fd9219146101b157806395a2251f1461025457806395e5819114610287578063a385fb96146102ba5761011b565b8063715018a6116100ee578063715018a61461017b57806374375359146101855780638da5cb5b1461018d5780638f32d59b146101955761011b565b806302bbce46146101205780631249c58b1461013a5780632dd60c5e146101425780636f307dc314610173575b600080fd5b61012861033f565b60408051918252519081900360200190f35b6101286103dc565b61014a6106eb565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61014a610707565b610183610723565b005b610128610805565b61014a610870565b61019d61088c565b604080519115158252519081900360200190f35b610128600480360360208110156101c757600080fd5b8101906020810181356401000000008111156101e257600080fd5b8201836020820111156101f457600080fd5b8035906020019184602083028401116401000000008311171561021657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506108ca945050505050565b6101286004803603602081101561026a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610aaa565b6101836004803603602081101561029d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610d97565b610128610f58565b610128610f5e565b610128600480360360208110156102e057600080fd5b503561101e565b610183600480360360208110156102fd57600080fd5b50356114d0565b6101836004803603602081101561031a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115b4565b61014a611633565b600154604080517f182df0f5000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff169163182df0f5916004808301926020929190829003018186803b1580156103aa57600080fd5b505afa1580156103be573d6000803e3d6000fd5b505050506040513d60208110156103d457600080fd5b505190505b90565b60035460009073ffffffffffffffffffffffffffffffffffffffff16331461046557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f742049646c65546f6b656e604482015290519081900360640190fd5b600254604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b1580156104d657600080fd5b505afa1580156104ea573d6000803e3d6000fd5b505050506040513d602081101561050057600080fd5b505190508061050f57506103d9565b600154604080517fa0712d6800000000000000000000000000000000000000000000000000000000815260048101849052905173ffffffffffffffffffffffffffffffffffffffff90921691829163a0712d689160248083019260209291908290030181600087803b15801561058457600080fd5b505af1158015610598573d6000803e3d6000fd5b505050506040513d60208110156105ae57600080fd5b50511561061c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4572726f72206d696e74696e672063546f6b656e730000000000000000000000604482015290519081900360640190fd5b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b15801561068d57600080fd5b505afa1580156106a1573d6000803e3d6000fd5b505050506040513d60208110156106b757600080fd5b50516001549093506106e69073ffffffffffffffffffffffffffffffffffffffff16338563ffffffff61164f16565b505090565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b61072b61088c565b61079657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b600154604080517f3b1d21a2000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691633b1d21a2916004808301926020929190829003018186803b1580156103aa57600080fd5b60005473ffffffffffffffffffffffffffffffffffffffff1690565b6000805473ffffffffffffffffffffffffffffffffffffffff166108ae6116e1565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b60008061097661092f846009815181106108e057fe5b6020026020010151610923866006815181106108f857fe5b60200260200101518760028151811061090d57fe5b60200260200101516116e590919063ffffffff16565b9063ffffffff6116e516565b61096a8560038151811061093f57fe5b60200260200101518660028151811061095457fe5b602002602001015161176290919063ffffffff16565b9063ffffffff6117d516565b905060006109db8460048151811061098a57fe5b60200260200101516109cf866002815181106109a257fe5b6020026020010151610923886009815181106109ba57fe5b60200260200101518960068151811061090d57fe5b9063ffffffff61181716565b90506000610a2c856005815181106109ef57fe5b6020026020010151610a2087600781518110610a0757fe5b602002602001015161096a878a60018151811061090d57fe5b9063ffffffff61176216565b9050610aa185600881518110610a3e57fe5b6020026020010151610a2087600781518110610a5657fe5b6020026020010151610a2089600081518110610a6e57fe5b602002602001015161096a8861096a8d600281518110610a8a57fe5b60200260200101518a61176290919063ffffffff16565b95945050505050565b60035460009073ffffffffffffffffffffffffffffffffffffffff163314610b3357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f742049646c65546f6b656e604482015290519081900360640190fd5b600154600254604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff9384169390921691839163db006a759183916370a08231916024808301926020929190829003018186803b158015610bb457600080fd5b505afa158015610bc8573d6000803e3d6000fd5b505050506040513d6020811015610bde57600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092525160248083019260209291908290030181600087803b158015610c3757600080fd5b505af1158015610c4b573d6000803e3d6000fd5b505050506040513d6020811015610c6157600080fd5b505115610ccf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4572726f722072656465656d696e672063546f6b656e73000000000000000000604482015290519081900360640190fd5b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8316916370a08231916024808301926020929190829003018186803b158015610d3b57600080fd5b505afa158015610d4f573d6000803e3d6000fd5b505050506040513d6020811015610d6557600080fd5b50519250610d9073ffffffffffffffffffffffffffffffffffffffff8216858563ffffffff61164f16565b5050919050565b610d9f61088c565b610e0a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff1615610e8f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f69646c65546f6b656e206164647220616c726561647920736574000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610f1157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5f69646c65546f6b656e20616464722069732030000000000000000000000000604482015290519081900360640190fd5b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60045481565b600154604080517fae9d70b0000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff16918391839163ae9d70b0916004808301926020929190829003018186803b158015610fcd57600080fd5b505afa158015610fe1573d6000803e3d6000fd5b505050506040513d6020811015610ff757600080fd5b505160045490915061101790606490610a2090849063ffffffff61176216565b9250505090565b600154604080517ff3fdb15a000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff16918391839163f3fdb15a916004808301926020929190829003018186803b15801561108d57600080fd5b505afa1580156110a1573d6000803e3d6000fd5b505050506040513d60208110156110b757600080fd5b505160408051600a8082526101608201909252919250606091906020820161014080388339019050509050670de0b6b3a7640000816000815181106110f857fe5b6020026020010181815250508173ffffffffffffffffffffffffffffffffffffffff16631f68f20a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561114a57600080fd5b505afa15801561115e573d6000803e3d6000fd5b505050506040513d602081101561117457600080fd5b505181518290600190811061118557fe5b6020026020010181815250508273ffffffffffffffffffffffffffffffffffffffff166347bd37186040518163ffffffff1660e01b815260040160206040518083038186803b1580156111d757600080fd5b505afa1580156111eb573d6000803e3d6000fd5b505050506040513d602081101561120157600080fd5b505181518290600290811061121257fe5b6020026020010181815250508173ffffffffffffffffffffffffffffffffffffffff16631b3ed7226040518163ffffffff1660e01b815260040160206040518083038186803b15801561126457600080fd5b505afa158015611278573d6000803e3d6000fd5b505050506040513d602081101561128e57600080fd5b505181518290600390811061129f57fe5b6020026020010181815250508273ffffffffffffffffffffffffffffffffffffffff16638f840ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156112f157600080fd5b505afa158015611305573d6000803e3d6000fd5b505050506040513d602081101561131b57600080fd5b505181518290600490811061132c57fe5b6020026020010181815250506113d08373ffffffffffffffffffffffffffffffffffffffff1663173b99046040518163ffffffff1660e01b815260040160206040518083038186803b15801561138157600080fd5b505afa158015611395573d6000803e3d6000fd5b505050506040513d60208110156113ab57600080fd5b5051825183906000906113ba57fe5b602002602001015161181790919063ffffffff16565b816005815181106113dd57fe5b6020026020010181815250508273ffffffffffffffffffffffffffffffffffffffff16633b1d21a26040518163ffffffff1660e01b815260040160206040518083038186803b15801561142f57600080fd5b505afa158015611443573d6000803e3d6000fd5b505050506040513d602081101561145957600080fd5b505181518290600690811061146a57fe5b6020026020010181815250506004548160078151811061148657fe5b6020026020010181815250506064816008815181106114a157fe5b60200260200101818152505084816009815181106114bb57fe5b602002602001018181525050610aa1816108ca565b6114d861088c565b61154357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b806115af57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f5f626c6f636b7350657259656172206973203000000000000000000000000000604482015290519081900360640190fd5b600455565b6115bc61088c565b61162757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61163081611859565b50565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526116dc908490611952565b505050565b3390565b60008282018381101561175957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6000826117715750600061175c565b8282028284828161177e57fe5b0414611759576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611eb76021913960400191505060405180910390fd5b600061175983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b96565b600061175983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611c52565b73ffffffffffffffffffffffffffffffffffffffff81166118c5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611e916026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6119718273ffffffffffffffffffffffffffffffffffffffff16611cc6565b6119dc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310611a4557805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611a08565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611aa7576040519150601f19603f3d011682016040523d82523d6000602084013e611aac565b606091505b509150915081611b1d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611b9057808060200190516020811015611b3957600080fd5b5051611b90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611ed8602a913960400191505060405180910390fd5b50505050565b60008183611c3c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c01578181015183820152602001611be9565b50505050905090810190601f168015611c2e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611c4857fe5b0495945050505050565b60008184841115611cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315611c01578181015183820152602001611be9565b505050900390565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590611cfa5750808214155b949350505050565b801580611dae5750604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611d8057600080fd5b505afa158015611d94573d6000803e3d6000fd5b505050506040513d6020811015611daa57600080fd5b5051155b611e03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526036815260200180611f026036913960400191505060405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790526116dc90849061195256fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a72315820c98a09c1e37772d14d283b4c3d17fdf6c7318f5922b5f73fadadfcd6848efc4c64736f6c63430005100032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000039aa39c021dfbae8fac545936693ac917d5e7563000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
-----Decoded View---------------
Arg [0] : _token (address): 0x39AA39c021dfbaE8faC545936693aC917d5E7563
Arg [1] : _underlying (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000039aa39c021dfbae8fac545936693ac917d5e7563
Arg [1] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.