More Info
Private Name Tags
ContractCreator
Latest 6 from a total of 6 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 61538616 | 91 days ago | IN | 0 POL | 0.00123584 | ||||
Set Deadline | 50502169 | 375 days ago | IN | 0 POL | 0.00482743 | ||||
Set Start Timest... | 50502114 | 375 days ago | IN | 0 POL | 0.00483426 | ||||
Withdraw | 50501744 | 375 days ago | IN | 0 POL | 0.00707474 | ||||
Migrate | 45863792 | 492 days ago | IN | 0 POL | 0.01103204 | ||||
Migrate | 45828136 | 493 days ago | IN | 0 POL | 0.00959748 |
Loading...
Loading
Contract Name:
TarotMigrator
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)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract TarotMigrator is Ownable, ReentrancyGuard { IERC20 immutable public oldToken; IERC20 immutable public wrappedOldToken; IERC20 immutable public newToken; bool immutable oldTokenIsNative; uint256 public expectedBalance; uint256 public startTimestamp; uint256 public deadline; uint256 public amountMigrated; event SetExpectedBalance(address indexed from, uint256 oldExpectedBalance, uint256 newExpectedBalance); event SetStartTimestamp(address indexed from, uint256 oldStartTimestamp, uint256 newStartTimestamp); event SetDeadline(address indexed from, uint256 oldDeadline, uint256 newDeadline); event Migrate(address indexed from, uint256 amount, uint256 totalAmountMigrated); event Withdraw(address indexed from, address indexed to, uint256 oldAmount, uint256 newAmount); constructor( IERC20 _oldToken, IERC20 _wrappedOldToken, IERC20 _newToken, bool _oldTokenIsNative, uint256 _expectedBalance, uint256 _startTimestamp, uint256 _deadline ) Ownable() ReentrancyGuard() { oldToken = _oldToken; wrappedOldToken = _wrappedOldToken; newToken = _newToken; oldTokenIsNative = _oldTokenIsNative; expectedBalance = _expectedBalance; startTimestamp = _startTimestamp; deadline = _deadline; } function setExpectedBalance(uint256 _expectedBalance) onlyOwner external { uint256 oldExpectedBalance = expectedBalance; expectedBalance = _expectedBalance; emit SetExpectedBalance(msg.sender, oldExpectedBalance, expectedBalance); } function setStartTimestamp(uint256 _startTimestamp) onlyOwner external { uint256 oldStartTimestamp = startTimestamp; startTimestamp = _startTimestamp; emit SetStartTimestamp(msg.sender, oldStartTimestamp, startTimestamp); } function setDeadline(uint256 _deadline) onlyOwner external { uint256 oldDeadline = deadline; deadline = _deadline; emit SetDeadline(msg.sender, oldDeadline, deadline); } function checkExpectedBalance() public view returns (bool) { if (oldTokenIsNative) { return oldToken.balanceOf(address(wrappedOldToken)) >= expectedBalance; } else { return oldToken.totalSupply() == expectedBalance; } } function migrate(uint256 amount) nonReentrant external { require(checkExpectedBalance(), "TarotMigrator: INVALID_BALANCE"); require(block.timestamp >= startTimestamp, "TarotMigrator: TOO_SOON"); require(block.timestamp < deadline, "TarotMigrator: TOO_LATE"); require(amount > 0 && oldToken.balanceOf(msg.sender) >= amount, "TarotMigrator: INVALID_AMOUNT"); oldToken.transferFrom(msg.sender, address(this), amount); newToken.transfer(msg.sender, amount); amountMigrated += amount; emit Migrate(msg.sender, amount, amountMigrated); } function withdraw(address to, uint256 oldAmount, uint256 newAmount) onlyOwner external { require(to != address(0), "TarotMigrator: INVALID_TO"); if (oldAmount > 0) { oldToken.transfer(to, oldAmount); } if (newAmount > 0) { newToken.transfer(to, newAmount); } emit Withdraw(msg.sender, to, oldAmount, newAmount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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 (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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_oldToken","type":"address"},{"internalType":"contract IERC20","name":"_wrappedOldToken","type":"address"},{"internalType":"contract IERC20","name":"_newToken","type":"address"},{"internalType":"bool","name":"_oldTokenIsNative","type":"bool"},{"internalType":"uint256","name":"_expectedBalance","type":"uint256"},{"internalType":"uint256","name":"_startTimestamp","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmountMigrated","type":"uint256"}],"name":"Migrate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldDeadline","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newDeadline","type":"uint256"}],"name":"SetDeadline","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldExpectedBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newExpectedBalance","type":"uint256"}],"name":"SetExpectedBalance","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldStartTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newStartTimestamp","type":"uint256"}],"name":"SetStartTimestamp","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":"oldAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"amountMigrated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkExpectedBalance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadline","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"expectedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"newToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oldToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"setDeadline","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_expectedBalance","type":"uint256"}],"name":"setExpectedBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTimestamp","type":"uint256"}],"name":"setStartTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"oldAmount","type":"uint256"},{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrappedOldToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
61010060405234801561001157600080fd5b50604051610e7f380380610e7f833981016040819052610030916100dd565b61003933610071565b600180556001600160a01b0396871660805294861660a0529290941660c052151560e052600292909255600391909155600455610157565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100d857600080fd5b919050565b600080600080600080600060e0888a0312156100f857600080fd5b610101886100c1565b965061010f602089016100c1565b955061011d604089016100c1565b94506060880151801515811461013257600080fd5b809450506080880151925060a0880151915060c0880151905092959891949750929550565b60805160a05160c05160e051610cb76101c860003960006106930152600081816101e90152818161059e015261091b01526000818161022301526106d10152600081816101af015281816104280152818161050c015281816106f90152818161077001526108800152610cb76000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063b31c710a11610097578063cbe87b9b11610066578063cbe87b9b1461021e578063e60c5f9114610245578063e6fd48bc1461024e578063f2fde38b1461025757600080fd5b8063b31c710a146101aa578063b5c5f672146101d1578063c42bd05a146101e4578063c44bef751461020b57600080fd5b8063454b0608116100d3578063454b060814610152578063715018a614610165578063844c2ca41461016d5780638da5cb5b1461018557600080fd5b80631038351714610105578063195199f61461011a57806329dcb0cf1461012d578063329d0fa514610149575b600080fd5b610118610113366004610b96565b61026a565b005b610118610128366004610b96565b6102ba565b61013660045481565b6040519081526020015b60405180910390f35b61013660025481565b610118610160366004610b96565b610302565b61011861067b565b61017561068f565b6040519015158152602001610140565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610140565b6101927f000000000000000000000000000000000000000000000000000000000000000081565b6101186101df366004610bcb565b6107f6565b6101927f000000000000000000000000000000000000000000000000000000000000000081565b610118610219366004610b96565b6109d5565b6101927f000000000000000000000000000000000000000000000000000000000000000081565b61013660055481565b61013660035481565b610118610265366004610bfe565b610a1d565b610272610a93565b6002805490829055604080518281526020810184905233917f04742bd6da3de5cc3c9c82a5e1cb826e9930185b55514a4faf8f3bf57211d9c791015b60405180910390a25050565b6102c2610a93565b6004805490829055604080518281526020810184905233917f88ae37138cbfc0fba3d204da21a9224aed78153f41917a62be1f8cb684e9868d91016102ae565b61030a610aed565b61031261068f565b6103635760405162461bcd60e51b815260206004820152601e60248201527f5461726f744d69677261746f723a20494e56414c49445f42414c414e4345000060448201526064015b60405180910390fd5b6003544210156103b55760405162461bcd60e51b815260206004820152601760248201527f5461726f744d69677261746f723a20544f4f5f534f4f4e000000000000000000604482015260640161035a565b60045442106104065760405162461bcd60e51b815260206004820152601760248201527f5461726f744d69677261746f723a20544f4f5f4c415445000000000000000000604482015260640161035a565b60008111801561049e57506040516370a0823160e01b815233600482015281907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610477573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049b9190610c20565b10155b6104ea5760405162461bcd60e51b815260206004820152601d60248201527f5461726f744d69677261746f723a20494e56414c49445f414d4f554e54000000604482015260640161035a565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af115801561055d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105819190610c39565b5060405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156105ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106139190610c39565b5080600560008282546106269190610c5b565b909155505060055460405133917fd44a6dd2bfac4f6bc02d116d96aa12c24e8580626b95cb6a2f543f18cb61bd4c9161066791858252602082015260400190565b60405180910390a261067860018055565b50565b610683610a93565b61068d6000610b46565b565b60007f00000000000000000000000000000000000000000000000000000000000000001561076b576002546040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107649190610c20565b1015905090565b6002547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f09190610c20565b14905090565b6107fe610a93565b6001600160a01b0383166108545760405162461bcd60e51b815260206004820152601960248201527f5461726f744d69677261746f723a20494e56414c49445f544f00000000000000604482015260640161035a565b81156108ef5760405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af11580156108c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ed9190610c39565b505b801561098a5760405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af1158015610964573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109889190610c39565b505b60408051838152602081018390526001600160a01b0385169133917ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567910160405180910390a3505050565b6109dd610a93565b6003805490829055604080518281526020810184905233917f97060d30fe794cb0e5c920609f0972524acbea12aca6793258685fc2c4bdb69891016102ae565b610a25610a93565b6001600160a01b038116610a8a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161035a565b61067881610b46565b6000546001600160a01b0316331461068d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161035a565b600260015403610b3f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161035a565b6002600155565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610ba857600080fd5b5035919050565b80356001600160a01b0381168114610bc657600080fd5b919050565b600080600060608486031215610be057600080fd5b610be984610baf565b95602085013595506040909401359392505050565b600060208284031215610c1057600080fd5b610c1982610baf565b9392505050565b600060208284031215610c3257600080fd5b5051919050565b600060208284031215610c4b57600080fd5b81518015158114610c1957600080fd5b60008219821115610c7c57634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212202fbb9f180d9c003447f393de671d6d7c0c476ba715a79652f713631081dcee3764736f6c634300080d0033000000000000000000000000d23ed8ca350ce2631f7ecdc5e6bf80d0a1debb7b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b092e1bf50f518b3ebf7ed26a40015183ae36ac2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d1874f5f3f00792fb8fd0000000000000000000000000000000000000000000000000000000064c5a8000000000000000000000000000000000000000000000000000000000064ed3500
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101005760003560e01c8063b31c710a11610097578063cbe87b9b11610066578063cbe87b9b1461021e578063e60c5f9114610245578063e6fd48bc1461024e578063f2fde38b1461025757600080fd5b8063b31c710a146101aa578063b5c5f672146101d1578063c42bd05a146101e4578063c44bef751461020b57600080fd5b8063454b0608116100d3578063454b060814610152578063715018a614610165578063844c2ca41461016d5780638da5cb5b1461018557600080fd5b80631038351714610105578063195199f61461011a57806329dcb0cf1461012d578063329d0fa514610149575b600080fd5b610118610113366004610b96565b61026a565b005b610118610128366004610b96565b6102ba565b61013660045481565b6040519081526020015b60405180910390f35b61013660025481565b610118610160366004610b96565b610302565b61011861067b565b61017561068f565b6040519015158152602001610140565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610140565b6101927f000000000000000000000000d23ed8ca350ce2631f7ecdc5e6bf80d0a1debb7b81565b6101186101df366004610bcb565b6107f6565b6101927f000000000000000000000000b092e1bf50f518b3ebf7ed26a40015183ae36ac281565b610118610219366004610b96565b6109d5565b6101927f000000000000000000000000000000000000000000000000000000000000000081565b61013660055481565b61013660035481565b610118610265366004610bfe565b610a1d565b610272610a93565b6002805490829055604080518281526020810184905233917f04742bd6da3de5cc3c9c82a5e1cb826e9930185b55514a4faf8f3bf57211d9c791015b60405180910390a25050565b6102c2610a93565b6004805490829055604080518281526020810184905233917f88ae37138cbfc0fba3d204da21a9224aed78153f41917a62be1f8cb684e9868d91016102ae565b61030a610aed565b61031261068f565b6103635760405162461bcd60e51b815260206004820152601e60248201527f5461726f744d69677261746f723a20494e56414c49445f42414c414e4345000060448201526064015b60405180910390fd5b6003544210156103b55760405162461bcd60e51b815260206004820152601760248201527f5461726f744d69677261746f723a20544f4f5f534f4f4e000000000000000000604482015260640161035a565b60045442106104065760405162461bcd60e51b815260206004820152601760248201527f5461726f744d69677261746f723a20544f4f5f4c415445000000000000000000604482015260640161035a565b60008111801561049e57506040516370a0823160e01b815233600482015281907f000000000000000000000000d23ed8ca350ce2631f7ecdc5e6bf80d0a1debb7b6001600160a01b0316906370a0823190602401602060405180830381865afa158015610477573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049b9190610c20565b10155b6104ea5760405162461bcd60e51b815260206004820152601d60248201527f5461726f744d69677261746f723a20494e56414c49445f414d4f554e54000000604482015260640161035a565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f000000000000000000000000d23ed8ca350ce2631f7ecdc5e6bf80d0a1debb7b6001600160a01b0316906323b872dd906064016020604051808303816000875af115801561055d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105819190610c39565b5060405163a9059cbb60e01b8152336004820152602481018290527f000000000000000000000000b092e1bf50f518b3ebf7ed26a40015183ae36ac26001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156105ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106139190610c39565b5080600560008282546106269190610c5b565b909155505060055460405133917fd44a6dd2bfac4f6bc02d116d96aa12c24e8580626b95cb6a2f543f18cb61bd4c9161066791858252602082015260400190565b60405180910390a261067860018055565b50565b610683610a93565b61068d6000610b46565b565b60007f00000000000000000000000000000000000000000000000000000000000000001561076b576002546040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f000000000000000000000000d23ed8ca350ce2631f7ecdc5e6bf80d0a1debb7b16906370a0823190602401602060405180830381865afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107649190610c20565b1015905090565b6002547f000000000000000000000000d23ed8ca350ce2631f7ecdc5e6bf80d0a1debb7b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f09190610c20565b14905090565b6107fe610a93565b6001600160a01b0383166108545760405162461bcd60e51b815260206004820152601960248201527f5461726f744d69677261746f723a20494e56414c49445f544f00000000000000604482015260640161035a565b81156108ef5760405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f000000000000000000000000d23ed8ca350ce2631f7ecdc5e6bf80d0a1debb7b169063a9059cbb906044016020604051808303816000875af11580156108c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ed9190610c39565b505b801561098a5760405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390527f000000000000000000000000b092e1bf50f518b3ebf7ed26a40015183ae36ac2169063a9059cbb906044016020604051808303816000875af1158015610964573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109889190610c39565b505b60408051838152602081018390526001600160a01b0385169133917ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567910160405180910390a3505050565b6109dd610a93565b6003805490829055604080518281526020810184905233917f97060d30fe794cb0e5c920609f0972524acbea12aca6793258685fc2c4bdb69891016102ae565b610a25610a93565b6001600160a01b038116610a8a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161035a565b61067881610b46565b6000546001600160a01b0316331461068d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161035a565b600260015403610b3f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161035a565b6002600155565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610ba857600080fd5b5035919050565b80356001600160a01b0381168114610bc657600080fd5b919050565b600080600060608486031215610be057600080fd5b610be984610baf565b95602085013595506040909401359392505050565b600060208284031215610c1057600080fd5b610c1982610baf565b9392505050565b600060208284031215610c3257600080fd5b5051919050565b600060208284031215610c4b57600080fd5b81518015158114610c1957600080fd5b60008219821115610c7c57634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212202fbb9f180d9c003447f393de671d6d7c0c476ba715a79652f713631081dcee3764736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d23ed8ca350ce2631f7ecdc5e6bf80d0a1debb7b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b092e1bf50f518b3ebf7ed26a40015183ae36ac2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d1874f5f3f00792fb8fd0000000000000000000000000000000000000000000000000000000064c5a8000000000000000000000000000000000000000000000000000000000064ed3500
-----Decoded View---------------
Arg [0] : _oldToken (address): 0xd23Ed8cA350CE2631F7EcDC5E6bf80D0A1DeBB7B
Arg [1] : _wrappedOldToken (address): 0x0000000000000000000000000000000000000000
Arg [2] : _newToken (address): 0xb092e1BF50f518b3Ebf7eD26A40015183aE36AC2
Arg [3] : _oldTokenIsNative (bool): False
Arg [4] : _expectedBalance (uint256): 989470624729029688670461
Arg [5] : _startTimestamp (uint256): 1690675200
Arg [6] : _deadline (uint256): 1693267200
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000d23ed8ca350ce2631f7ecdc5e6bf80d0a1debb7b
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 000000000000000000000000b092e1bf50f518b3ebf7ed26a40015183ae36ac2
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 00000000000000000000000000000000000000000000d1874f5f3f00792fb8fd
Arg [5] : 0000000000000000000000000000000000000000000000000000000064c5a800
Arg [6] : 0000000000000000000000000000000000000000000000000000000064ed3500
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.