Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 17 from a total of 17 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 15917550 | 1208 days ago | IN | 0 ETH | 0.00051762 | ||||
| Approve | 15580050 | 1256 days ago | IN | 0 ETH | 0.00026712 | ||||
| Approve | 15494824 | 1269 days ago | IN | 0 ETH | 0.00041564 | ||||
| Approve | 15482325 | 1271 days ago | IN | 0 ETH | 0.00051304 | ||||
| Approve | 15481864 | 1271 days ago | IN | 0 ETH | 0.00063855 | ||||
| Approve | 15446904 | 1276 days ago | IN | 0 ETH | 0.00163656 | ||||
| Approve | 15446859 | 1276 days ago | IN | 0 ETH | 0.00127139 | ||||
| Approve | 15442759 | 1277 days ago | IN | 0 ETH | 0.00078233 | ||||
| Approve | 15427734 | 1279 days ago | IN | 0 ETH | 0.00029426 | ||||
| Approve | 15423217 | 1280 days ago | IN | 0 ETH | 0.00062771 | ||||
| Approve | 15423199 | 1280 days ago | IN | 0 ETH | 0.0006942 | ||||
| Approve | 15423078 | 1280 days ago | IN | 0 ETH | 0.00097792 | ||||
| Approve | 15418628 | 1281 days ago | IN | 0 ETH | 0.00034663 | ||||
| Approve | 15415391 | 1281 days ago | IN | 0 ETH | 0.00059782 | ||||
| Approve | 15415229 | 1281 days ago | IN | 0 ETH | 0.00045743 | ||||
| Approve | 15414453 | 1281 days ago | IN | 0 ETH | 0.00031491 | ||||
| Approve | 15409986 | 1282 days ago | IN | 0 ETH | 0.00142171 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| 0x60806040 | 15409966 | 1282 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
fERC20
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0;
import "../lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";
import "./Split.sol";
import "./Oracle.sol";
import "./interfaces/IOracle.sol";
function suffix(string memory str, bool future0, bool name) pure returns (string memory) {
return
name
? string(abi.encodePacked(str, future0 ? " POS" : " POW"))
: string(abi.encodePacked(str, future0 ? "s" : "w"));
}
contract fERC20 is ERC20 {
bool future0;
address owner;
IOracle oracle;
uint8 decimals_;
constructor(IERC20 _underlying, IOracle _oracle, bool _future0)
ERC20(
suffix(ERC20(address(_underlying)).name(), _future0, true),
suffix(ERC20(address(_underlying)).symbol(), _future0, false)
)
{
owner = msg.sender;
future0 = _future0;
oracle = _oracle;
decimals_ = ERC20(address(_underlying)).decimals();
}
modifier isOwner() {
require(msg.sender == owner);
_;
}
function decimals() public view override returns (uint8) {
return decimals_;
}
function mint(address to, uint256 wad) public isOwner {
_mint(to, wad);
}
function burn(address from, uint256 wad) public isOwner {
_burn(from, wad);
}
function _afterTokenTransfer(address from, address to, uint256 amount) internal override {
if (to != address(0) && oracle.isExpired() && !oracle.isRedeemable(future0)) {
unchecked {
_burn(to, amount);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(
address owner,
address spender,
uint256 amount
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}pragma solidity ^0.8.0;
import "../lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "./fERC20.sol";
import "./Oracle.sol";
contract Split {
IERC20 public underlying;
fERC20 public future0;
fERC20 public future1;
IOracle public oracle;
constructor(IERC20 _underlying, IOracle _oracle) {
require(!_oracle.isExpired());
oracle = _oracle;
underlying = _underlying;
future0 = new fERC20(_underlying, oracle, true);
future1 = new fERC20(_underlying, oracle, false);
}
function futures() public view returns (fERC20, fERC20) {
return (future0, future1);
}
function mint(uint256 _wad) public {
mintTo(msg.sender, _wad);
}
function mintTo(address _who, uint256 _wad) public {
require(!oracle.isExpired(), "Merge has already happened");
future0.mint(_who, _wad);
future1.mint(_who, _wad);
underlying.transferFrom(msg.sender, address(this), _wad);
}
function burn(uint256 _wad) public {
require(!oracle.isExpired(), "Merge has already happened");
future0.burn(msg.sender, _wad);
future1.burn(msg.sender, _wad);
underlying.transfer(msg.sender, _wad);
}
function redeem(uint256 _wad) public {
require(oracle.isExpired(), "Merge has not happened yet");
if (oracle.isRedeemable(true)) {
future0.burn(msg.sender, _wad);
}
if (oracle.isRedeemable(false)) {
future1.burn(msg.sender, _wad);
}
underlying.transfer(msg.sender, _wad);
}
}pragma solidity ^0.8.0;
import "./interfaces/IOracle.sol";
contract ForkOracle is IOracle {
bool expired = false;
uint256 deployTime;
uint256 MIN_RANDAO = 2 ** 128;
constructor() {
deployTime = block.timestamp;
}
function setExpired() public {
require((block.timestamp - deployTime > 365 * 24 * 60 * 60) || isExpired());
expired = true;
}
function isExpired() public view returns (bool) {
return expired || block.chainid != 1 || block.difficulty >= MIN_RANDAO;
}
function isRedeemable(bool isPos) public view returns (bool) {
return isPos == (block.chainid == 1);
}
}pragma solidity >=0.5.16;
interface IOracle {
function isExpired() external view returns (bool);
function isRedeemable(bool future0) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the 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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}{
"remappings": [
"@uniswap/lib/=lib/solidity-lib/",
"@uniswap/v2-core/=lib/v2-core/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts-2.3.0/=lib/openzeppelin-contracts-2.3.0/contracts/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"openzeppelin-solidity-2.3.0/=lib/openzeppelin-contracts-2.3.0/",
"prb-math/=lib/prb-math/contracts/",
"solidity-lib/=lib/solidity-lib/contracts/",
"synthetix/=lib/synthetix/contracts/",
"utils/=lib/utils/",
"v2-core/=lib/v2-core/contracts/",
"v2-periphery/=lib/v2-periphery/contracts/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "london",
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_underlying","type":"address"},{"internalType":"contract IOracle","name":"_oracle","type":"address"},{"internalType":"bool","name":"_future0","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b506040516200120b3803806200120b8339810160408190526200003491620003b9565b620000aa836001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000077573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620000a191908101906200045a565b82600162000215565b62000120846001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620000ed573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200011791908101906200045a565b83600062000215565b815162000135906003906020850190620002fa565b5080516200014b906004906020840190620002fa565b5050600580546001600160a81b031916336101000260ff19161783151517905550600680546001600160a01b0319166001600160a01b03848116919091179091556040805163313ce56760e01b815290519185169163313ce567916004808201926020929091908290030181865afa158015620001cc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001f2919062000512565b600660146101000a81548160ff021916908360ff160217905550505050620005ad565b606081620002875783836200024457604051806040016040528060018152602001607760f81b8152506200025f565b604051806040016040528060018152602001607360f81b8152505b604051602001620002729291906200053e565b604051602081830303815290604052620002f2565b8383620002b1576040518060400160405280600481526020016320504f5760e01b815250620002cf565b6040518060400160405280600481526020016320504f5360e01b8152505b604051602001620002e29291906200053e565b6040516020818303038152906040525b949350505050565b828054620003089062000571565b90600052602060002090601f0160209004810192826200032c576000855562000377565b82601f106200034757805160ff191683800117855562000377565b8280016001018555821562000377579182015b82811115620003775782518255916020019190600101906200035a565b506200038592915062000389565b5090565b5b808211156200038557600081556001016200038a565b6001600160a01b0381168114620003b657600080fd5b50565b600080600060608486031215620003cf57600080fd5b8351620003dc81620003a0565b6020850151909350620003ef81620003a0565b604085015190925080151581146200040657600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004445781810151838201526020016200042a565b8381111562000454576000848401525b50505050565b6000602082840312156200046d57600080fd5b81516001600160401b03808211156200048557600080fd5b818401915084601f8301126200049a57600080fd5b815181811115620004af57620004af62000411565b604051601f8201601f19908116603f01168101908382118183101715620004da57620004da62000411565b81604052828152876020848701011115620004f457600080fd5b6200050783602083016020880162000427565b979650505050505050565b6000602082840312156200052557600080fd5b815160ff811681146200053757600080fd5b9392505050565b600083516200055281846020880162000427565b8351908301906200056881836020880162000427565b01949350505050565b600181811c908216806200058657607f821691505b602082108103620005a757634e487b7160e01b600052602260045260246000fd5b50919050565b610c4e80620005bd6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806340c10f191161008c5780639dc29fac116100665780639dc29fac146101b2578063a457c2d7146101c5578063a9059cbb146101d8578063dd62ed3e146101eb57600080fd5b806340c10f191461016c57806370a082311461018157806395d89b41146101aa57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610159575b600080fd5b6100dc6101fe565b6040516100e99190610a6a565b60405180910390f35b610105610100366004610adb565b610290565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b610105610135366004610b05565b6102a8565b600654600160a01b900460ff1660405160ff90911681526020016100e9565b610105610167366004610adb565b6102cc565b61017f61017a366004610adb565b6102ee565b005b61011961018f366004610b41565b6001600160a01b031660009081526020819052604090205490565b6100dc610318565b61017f6101c0366004610adb565b610327565b6101056101d3366004610adb565b61034d565b6101056101e6366004610adb565b6103cd565b6101196101f9366004610b63565b6103db565b60606003805461020d90610b96565b80601f016020809104026020016040519081016040528092919081815260200182805461023990610b96565b80156102865780601f1061025b57610100808354040283529160200191610286565b820191906000526020600020905b81548152906001019060200180831161026957829003601f168201915b5050505050905090565b60003361029e818585610406565b5060019392505050565b6000336102b685828561052a565b6102c18585856105a4565b506001949350505050565b60003361029e8185856102df83836103db565b6102e99190610bd0565b610406565b60055461010090046001600160a01b0316331461030a57600080fd5b610314828261074e565b5050565b60606004805461020d90610b96565b60055461010090046001600160a01b0316331461034357600080fd5b6103148282610815565b6000338161035b82866103db565b9050838110156103c05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102c18286868403610406565b60003361029e8185856105a4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166104685760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103b7565b6001600160a01b0382166104c95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103b7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061053684846103db565b9050600019811461059e57818110156105915760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103b7565b61059e8484848403610406565b50505050565b6001600160a01b0383166106085760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103b7565b6001600160a01b03821661066a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103b7565b6001600160a01b038316600090815260208190526040902054818110156106e25760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103b7565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361059e848484610953565b6001600160a01b0382166107a45760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103b7565b80600260008282546107b69190610bd0565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361031460008383610953565b6001600160a01b0382166108755760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103b7565b6001600160a01b038216600090815260208190526040902054818110156108e95760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103b7565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361094e83600084610953565b505050565b6001600160a01b038216158015906109dd5750600660009054906101000a90046001600160a01b03166001600160a01b0316632f13b60c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd9190610bf6565b8015610a5b57506006546005546040516350a924e960e11b815260ff909116151560048201526001600160a01b039091169063a15249d290602401602060405180830381865afa158015610a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a599190610bf6565b155b1561094e5761094e8282610815565b600060208083528351808285015260005b81811015610a9757858101830151858201604001528201610a7b565b81811115610aa9576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610ad657600080fd5b919050565b60008060408385031215610aee57600080fd5b610af783610abf565b946020939093013593505050565b600080600060608486031215610b1a57600080fd5b610b2384610abf565b9250610b3160208501610abf565b9150604084013590509250925092565b600060208284031215610b5357600080fd5b610b5c82610abf565b9392505050565b60008060408385031215610b7657600080fd5b610b7f83610abf565b9150610b8d60208401610abf565b90509250929050565b600181811c90821680610baa57607f821691505b602082108103610bca57634e487b7160e01b600052602260045260246000fd5b50919050565b60008219821115610bf157634e487b7160e01b600052601160045260246000fd5b500190565b600060208284031215610c0857600080fd5b81518015158114610b5c57600080fdfea26469706673582212202566254209f47c0efb20b83c02832b6a2050557a8f74132c0538f1b725c4a42c64736f6c634300080d0033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000e00f8819384b297dd2029f6b018ec07484c91ba0000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806340c10f191161008c5780639dc29fac116100665780639dc29fac146101b2578063a457c2d7146101c5578063a9059cbb146101d8578063dd62ed3e146101eb57600080fd5b806340c10f191461016c57806370a082311461018157806395d89b41146101aa57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610159575b600080fd5b6100dc6101fe565b6040516100e99190610a6a565b60405180910390f35b610105610100366004610adb565b610290565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b610105610135366004610b05565b6102a8565b600654600160a01b900460ff1660405160ff90911681526020016100e9565b610105610167366004610adb565b6102cc565b61017f61017a366004610adb565b6102ee565b005b61011961018f366004610b41565b6001600160a01b031660009081526020819052604090205490565b6100dc610318565b61017f6101c0366004610adb565b610327565b6101056101d3366004610adb565b61034d565b6101056101e6366004610adb565b6103cd565b6101196101f9366004610b63565b6103db565b60606003805461020d90610b96565b80601f016020809104026020016040519081016040528092919081815260200182805461023990610b96565b80156102865780601f1061025b57610100808354040283529160200191610286565b820191906000526020600020905b81548152906001019060200180831161026957829003601f168201915b5050505050905090565b60003361029e818585610406565b5060019392505050565b6000336102b685828561052a565b6102c18585856105a4565b506001949350505050565b60003361029e8185856102df83836103db565b6102e99190610bd0565b610406565b60055461010090046001600160a01b0316331461030a57600080fd5b610314828261074e565b5050565b60606004805461020d90610b96565b60055461010090046001600160a01b0316331461034357600080fd5b6103148282610815565b6000338161035b82866103db565b9050838110156103c05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102c18286868403610406565b60003361029e8185856105a4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166104685760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103b7565b6001600160a01b0382166104c95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103b7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061053684846103db565b9050600019811461059e57818110156105915760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103b7565b61059e8484848403610406565b50505050565b6001600160a01b0383166106085760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103b7565b6001600160a01b03821661066a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103b7565b6001600160a01b038316600090815260208190526040902054818110156106e25760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103b7565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361059e848484610953565b6001600160a01b0382166107a45760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103b7565b80600260008282546107b69190610bd0565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361031460008383610953565b6001600160a01b0382166108755760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103b7565b6001600160a01b038216600090815260208190526040902054818110156108e95760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103b7565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361094e83600084610953565b505050565b6001600160a01b038216158015906109dd5750600660009054906101000a90046001600160a01b03166001600160a01b0316632f13b60c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd9190610bf6565b8015610a5b57506006546005546040516350a924e960e11b815260ff909116151560048201526001600160a01b039091169063a15249d290602401602060405180830381865afa158015610a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a599190610bf6565b155b1561094e5761094e8282610815565b600060208083528351808285015260005b81811015610a9757858101830151858201604001528201610a7b565b81811115610aa9576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610ad657600080fd5b919050565b60008060408385031215610aee57600080fd5b610af783610abf565b946020939093013593505050565b600080600060608486031215610b1a57600080fd5b610b2384610abf565b9250610b3160208501610abf565b9150604084013590509250925092565b600060208284031215610b5357600080fd5b610b5c82610abf565b9392505050565b60008060408385031215610b7657600080fd5b610b7f83610abf565b9150610b8d60208401610abf565b90509250929050565b600181811c90821680610baa57607f821691505b602082108103610bca57634e487b7160e01b600052602260045260246000fd5b50919050565b60008219821115610bf157634e487b7160e01b600052601160045260246000fd5b500190565b600060208284031215610c0857600080fd5b81518015158114610b5c57600080fdfea26469706673582212202566254209f47c0efb20b83c02832b6a2050557a8f74132c0538f1b725c4a42c64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000e00f8819384b297dd2029f6b018ec07484c91ba0000000000000000000000000000000000000000000000000000000000000001
-----Decoded View---------------
Arg [0] : _underlying (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : _oracle (address): 0x0E00F8819384B297DD2029f6B018eC07484c91bA
Arg [2] : _future0 (bool): True
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 0000000000000000000000000e00f8819384b297dd2029f6b018ec07484c91ba
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
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 ]
[ 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.