More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 6,946 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Wrap | 21476984 | 12 days ago | IN | 0 ETH | 0.00045427 | ||||
Rescue | 19377100 | 306 days ago | IN | 0 ETH | 0.00388228 | ||||
Wrap | 18249922 | 464 days ago | IN | 0 ETH | 0.00114826 | ||||
Wrap | 18249654 | 464 days ago | IN | 0 ETH | 0.00115825 | ||||
Wrap | 18242012 | 465 days ago | IN | 0 ETH | 0.003079 | ||||
Wrap | 18239377 | 465 days ago | IN | 0 ETH | 0.00079974 | ||||
Wrap | 18236366 | 465 days ago | IN | 0 ETH | 0.00181057 | ||||
Wrap | 18236053 | 466 days ago | IN | 0 ETH | 0.00152255 | ||||
Wrap | 18235583 | 466 days ago | IN | 0 ETH | 0.00258293 | ||||
Wrap | 18231444 | 466 days ago | IN | 0 ETH | 0.00059154 | ||||
Wrap | 18230703 | 466 days ago | IN | 0 ETH | 0.00126116 | ||||
Wrap | 18228243 | 467 days ago | IN | 0 ETH | 0.0021404 | ||||
Wrap | 18223325 | 467 days ago | IN | 0 ETH | 0.00073782 | ||||
Wrap | 18223212 | 467 days ago | IN | 0 ETH | 0.00094526 | ||||
Wrap | 18218582 | 468 days ago | IN | 0 ETH | 0.00100718 | ||||
Wrap | 18197674 | 471 days ago | IN | 0 ETH | 0.00097113 | ||||
Wrap | 18194829 | 471 days ago | IN | 0 ETH | 0.00073308 | ||||
Wrap | 18180028 | 473 days ago | IN | 0 ETH | 0.00035047 | ||||
Wrap | 18179836 | 473 days ago | IN | 0 ETH | 0.00036026 | ||||
Wrap | 18140064 | 479 days ago | IN | 0 ETH | 0.00120137 | ||||
Wrap | 17647507 | 548 days ago | IN | 0 ETH | 0.00132109 | ||||
Unwrap | 17621720 | 552 days ago | IN | 0 ETH | 0.00440045 | ||||
Unwrap | 17535259 | 564 days ago | IN | 0 ETH | 0.00282382 | ||||
Unwrap | 17487996 | 570 days ago | IN | 0 ETH | 0.00296477 | ||||
Unwrap | 17477112 | 572 days ago | IN | 0 ETH | 0.00314755 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ERC20ToBEP20Wrapper
Compiler Version
v0.8.0+commit.c7dfd78e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-07-02 */ pragma solidity =0.8.0; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address to, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address sender, address to, uint256 amount) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } contract Ownable { address public owner; address public newOwner; event OwnershipTransferred(address indexed from, address indexed to); constructor() { owner = msg.sender; emit OwnershipTransferred(address(0), owner); } modifier onlyOwner { require(msg.sender == owner, "Ownable: Caller is not the owner"); _; } function transferOwnership(address transferOwner) external onlyOwner { require(transferOwner != newOwner); newOwner = transferOwner; } function acceptOwnership() virtual public { require(msg.sender == newOwner); emit OwnershipTransferred(owner, newOwner); owner = newOwner; newOwner = address(0); } } library TransferHelper { function safeApprove(address token, address to, uint value) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED'); } function safeTransfer(address token, address to, uint value) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED'); } function safeTransferFrom(address token, address from, address to, uint value) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED'); } function safeTransferETH(address to, uint value) internal { (bool success,) = to.call{value:value}(new bytes(0)); require(success, 'TransferHelper: ETH_TRANSFER_FAILED'); } } contract ERC20ToBEP20Wrapper is Ownable { struct UnwrapInfo { uint amount; uint fee; uint bscNonce; } IERC20 public immutable NBU; uint public minWrapAmount; mapping(address => uint) public userWrapNonces; mapping(address => uint) public userUnwrapNonces; mapping(address => mapping(uint => uint)) public bscToEthUserUnwrapNonces; mapping(address => mapping(uint => uint)) public wraps; mapping(address => mapping(uint => UnwrapInfo)) public unwraps; event Wrap(address indexed user, uint indexed wrapNonce, uint amount); event Unwrap(address indexed user, uint indexed unwrapNonce, uint indexed bscNonce, uint amount, uint fee); event UpdateMinWrapAmount(uint indexed amount); event Rescue(address indexed to, uint amount); event RescueToken(address token, address indexed to, uint amount); constructor(address nbu) { NBU = IERC20(nbu); } function wrap(uint amount) external { require(amount >= minWrapAmount, "ERC20ToBEP20Wrapper: Value too small"); NBU.transferFrom(msg.sender, address(this), amount); uint userWrapNonce = ++userWrapNonces[msg.sender]; wraps[msg.sender][userWrapNonce] = amount; emit Wrap(msg.sender, userWrapNonce, amount); } function unwrap(address user, uint amount, uint fee, uint bscNonce) external onlyOwner { require(user != address(0), "ERC20ToBEP20Wrapper: Can't be zero address"); require(bscToEthUserUnwrapNonces[user][bscNonce] == 0, "ERC20ToBEP20Wrapper: Already processed"); NBU.transfer(user, amount - fee); uint unwrapNonce = ++userUnwrapNonces[user]; bscToEthUserUnwrapNonces[user][bscNonce] = unwrapNonce; unwraps[user][unwrapNonce].amount = amount; unwraps[user][unwrapNonce].fee = fee; unwraps[user][unwrapNonce].bscNonce = bscNonce; emit Unwrap(user, unwrapNonce, bscNonce, amount, fee); } //Admin functions function rescue(address payable to, uint256 amount) external onlyOwner { require(to != address(0), "ERC20ToBEP20Wrapper: Can't be zero address"); require(amount > 0, "ERC20ToBEP20Wrapper: Should be greater than 0"); TransferHelper.safeTransferETH(to, amount); emit Rescue(to, amount); } function rescue(address to, address token, uint256 amount) external onlyOwner { require(to != address(0), "ERC20ToBEP20Wrapper: Can't be zero address"); require(amount > 0, "ERC20ToBEP20Wrapper: Should be greater than 0"); TransferHelper.safeTransfer(token, to, amount); emit RescueToken(token, to, amount); } function updateMinWrapAmount(uint amount) external onlyOwner { require(amount > 0, "ERC20ToBEP20Wrapper: Should be greater than 0"); minWrapAmount = amount; emit UpdateMinWrapAmount(amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"nbu","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Rescue","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RescueToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"unwrapNonce","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"bscNonce","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"Unwrap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UpdateMinWrapAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"wrapNonce","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Wrap","type":"event"},{"inputs":[],"name":"NBU","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"bscToEthUserUnwrapNonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minWrapAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"newOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"transferOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"bscNonce","type":"uint256"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"unwraps","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"bscNonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"updateMinWrapAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userUnwrapNonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userWrapNonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"wrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"wraps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a060405234801561001057600080fd5b506040516113b13803806113b183398101604081905261002f9161008d565b600080546001600160a01b03191633178082556040516001600160a01b039190911691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a360601b6001600160601b0319166080526100bb565b60006020828403121561009e578081fd5b81516001600160a01b03811681146100b4578182fd5b9392505050565b60805160601c6112ca6100e760003960008181610234015281816104c60152610a1601526112ca6000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806386edeaa311610097578063d4ee1d9011610066578063d4ee1d90146101fc578063e991fb2714610204578063ea598cb01461020c578063f2fde38b1461021f57610100565b806386edeaa3146101ac5780638da5cb5b146101ce578063b6fde7d4146101d6578063c4b06113146101e957610100565b8063433299b6116100d3578063433299b61461016b57806379ba50971461017e5780637a4e4ecf14610186578063855205cf1461019957610100565b8063164547541461010557806320ff430b1461012357806326125aa8146101385780633a4d9ddb14610158575b600080fd5b61010d610232565b60405161011a9190610f0e565b60405180910390f35b610136610131366004610e11565b610256565b005b61014b610146366004610dc3565b610397565b60405161011a91906111c3565b610136610166366004610e63565b6103a9565b610136610179366004610ebd565b61063b565b6101366106f9565b610136610194366004610de6565b6107b3565b61014b6101a7366004610e51565b6108e7565b6101bf6101ba366004610e51565b610904565b60405161011a939291906111da565b61010d610930565b61014b6101e4366004610dc3565b61094c565b61014b6101f7366004610e51565b61095e565b61010d61097b565b61014b610997565b61013661021a366004610ebd565b61099d565b61013661022d366004610dc3565b610b21565b7f000000000000000000000000000000000000000000000000000000000000000081565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a79061101a565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166102fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a7906110ac565b60008111610337576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a790610fbd565b610342828483610be1565b8273ffffffffffffffffffffffffffffffffffffffff167faabf44ab9d5bef08d1b60f287a337f0d11a248e49741ad189b429e47e98ba910838360405161038a929190610f60565b60405180910390a2505050565b60036020526000908152604090205481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a79061101a565b73ffffffffffffffffffffffffffffffffffffffff8416610447576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a7906110ac565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600560209081526040808320848452909152902054156104af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a79061104f565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb856104f685876111f0565b6040518363ffffffff1660e01b8152600401610513929190610f60565b602060405180830381600087803b15801561052d57600080fd5b505af1158015610541573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105659190610e9d565b5073ffffffffffffffffffffffffffffffffffffffff841660009081526004602052604081208054829061059890611207565b918290555073ffffffffffffffffffffffffffffffffffffffff8616600081815260056020908152604080832087845282528083208590558383526007825280832085845290915290819020878155600181018790556002018590555191925083918391907fe0a79c2fe8724ab4d9a7a746557c89887e7e4bad06e423be5c234fe85e9358349061062c90899089906111cc565b60405180910390a45050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461068c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a79061101a565b600081116106c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a790610fbd565b600281905560405181907f9f1b4cb09a8ad23e77c9afc43668befa344dea20c3a547a7ec6f4ec09dbdd66c90600090a250565b60015473ffffffffffffffffffffffffffffffffffffffff16331461071d57600080fd5b6001546000805460405173ffffffffffffffffffffffffffffffffffffffff93841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a79061101a565b73ffffffffffffffffffffffffffffffffffffffff8216610851576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a7906110ac565b6000811161088b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a790610fbd565b6108958282610d0a565b8173ffffffffffffffffffffffffffffffffffffffff167f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af2826040516108db91906111c3565b60405180910390a25050565b600660209081526000928352604080842090915290825290205481565b600760209081526000928352604080842090915290825290208054600182015460029092015490919083565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60046020526000908152604090205481565b600560209081526000928352604080842090915290825290205481565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60025481565b6002548110156109d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a790611166565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90610a4f90339030908690600401610f2f565b602060405180830381600087803b158015610a6957600080fd5b505af1158015610a7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa19190610e9d565b5033600090815260036020526040812080548290610abe90611207565b9182905550336000818152600660209081526040808320858452909152908190208590555191925082917f18a5ed48bb0a697c64a5aef8f28cec1f29ab01da27a45c5f835099781ef1ea4690610b159086906111c3565b60405180910390a35050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b72576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a79061101a565b60015473ffffffffffffffffffffffffffffffffffffffff82811691161415610b9a57600080fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000808473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401610c13929190610f60565b6040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610c619190610ed5565b6000604051808303816000865af19150503d8060008114610c9e576040519150601f19603f3d011682016040523d82523d6000602084013e610ca3565b606091505b5091509150818015610ccd575080511580610ccd575080806020019051810190610ccd9190610e9d565b610d03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a790610f86565b5050505050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051610d419190610ed5565b60006040518083038185875af1925050503d8060008114610d7e576040519150601f19603f3d011682016040523d82523d6000602084013e610d83565b606091505b5050905080610dbe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a790611109565b505050565b600060208284031215610dd4578081fd5b8135610ddf8161126f565b9392505050565b60008060408385031215610df8578081fd5b8235610e038161126f565b946020939093013593505050565b600080600060608486031215610e25578081fd5b8335610e308161126f565b92506020840135610e408161126f565b929592945050506040919091013590565b60008060408385031215610df8578182fd5b60008060008060808587031215610e78578081fd5b8435610e838161126f565b966020860135965060408601359560600135945092505050565b600060208284031215610eae578081fd5b81518015158114610ddf578182fd5b600060208284031215610ece578081fd5b5035919050565b60008251815b81811015610ef55760208186018101518583015201610edb565b81811115610f035782828501525b509190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b6020808252601f908201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604082015260600190565b6020808252602d908201527f4552433230546f4245503230577261707065723a2053686f756c64206265206760408201527f726561746572207468616e203000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2043616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f4552433230546f4245503230577261707065723a20416c72656164792070726f60408201527f6365737365640000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f4552433230546f4245503230577261707065723a2043616e2774206265207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526023908201527f5472616e7366657248656c7065723a204554485f5452414e534645525f46414960408201527f4c45440000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f4552433230546f4245503230577261707065723a2056616c756520746f6f207360408201527f6d616c6c00000000000000000000000000000000000000000000000000000000606082015260800190565b90815260200190565b918252602082015260400190565b9283526020830191909152604082015260600190565b60008282101561120257611202611240565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561123957611239611240565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461129157600080fd5b5056fea264697066735822122034de30d27e4b289aabd14dbb4d9fff1de419ea7f889b86900acfd74588b1722d64736f6c63430008000033000000000000000000000000639ae8f3eed18690bf451229d14953a5a5627b72
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101005760003560e01c806386edeaa311610097578063d4ee1d9011610066578063d4ee1d90146101fc578063e991fb2714610204578063ea598cb01461020c578063f2fde38b1461021f57610100565b806386edeaa3146101ac5780638da5cb5b146101ce578063b6fde7d4146101d6578063c4b06113146101e957610100565b8063433299b6116100d3578063433299b61461016b57806379ba50971461017e5780637a4e4ecf14610186578063855205cf1461019957610100565b8063164547541461010557806320ff430b1461012357806326125aa8146101385780633a4d9ddb14610158575b600080fd5b61010d610232565b60405161011a9190610f0e565b60405180910390f35b610136610131366004610e11565b610256565b005b61014b610146366004610dc3565b610397565b60405161011a91906111c3565b610136610166366004610e63565b6103a9565b610136610179366004610ebd565b61063b565b6101366106f9565b610136610194366004610de6565b6107b3565b61014b6101a7366004610e51565b6108e7565b6101bf6101ba366004610e51565b610904565b60405161011a939291906111da565b61010d610930565b61014b6101e4366004610dc3565b61094c565b61014b6101f7366004610e51565b61095e565b61010d61097b565b61014b610997565b61013661021a366004610ebd565b61099d565b61013661022d366004610dc3565b610b21565b7f000000000000000000000000639ae8f3eed18690bf451229d14953a5a5627b7281565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a79061101a565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166102fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a7906110ac565b60008111610337576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a790610fbd565b610342828483610be1565b8273ffffffffffffffffffffffffffffffffffffffff167faabf44ab9d5bef08d1b60f287a337f0d11a248e49741ad189b429e47e98ba910838360405161038a929190610f60565b60405180910390a2505050565b60036020526000908152604090205481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a79061101a565b73ffffffffffffffffffffffffffffffffffffffff8416610447576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a7906110ac565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600560209081526040808320848452909152902054156104af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a79061104f565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000639ae8f3eed18690bf451229d14953a5a5627b721663a9059cbb856104f685876111f0565b6040518363ffffffff1660e01b8152600401610513929190610f60565b602060405180830381600087803b15801561052d57600080fd5b505af1158015610541573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105659190610e9d565b5073ffffffffffffffffffffffffffffffffffffffff841660009081526004602052604081208054829061059890611207565b918290555073ffffffffffffffffffffffffffffffffffffffff8616600081815260056020908152604080832087845282528083208590558383526007825280832085845290915290819020878155600181018790556002018590555191925083918391907fe0a79c2fe8724ab4d9a7a746557c89887e7e4bad06e423be5c234fe85e9358349061062c90899089906111cc565b60405180910390a45050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461068c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a79061101a565b600081116106c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a790610fbd565b600281905560405181907f9f1b4cb09a8ad23e77c9afc43668befa344dea20c3a547a7ec6f4ec09dbdd66c90600090a250565b60015473ffffffffffffffffffffffffffffffffffffffff16331461071d57600080fd5b6001546000805460405173ffffffffffffffffffffffffffffffffffffffff93841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a79061101a565b73ffffffffffffffffffffffffffffffffffffffff8216610851576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a7906110ac565b6000811161088b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a790610fbd565b6108958282610d0a565b8173ffffffffffffffffffffffffffffffffffffffff167f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af2826040516108db91906111c3565b60405180910390a25050565b600660209081526000928352604080842090915290825290205481565b600760209081526000928352604080842090915290825290208054600182015460029092015490919083565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60046020526000908152604090205481565b600560209081526000928352604080842090915290825290205481565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60025481565b6002548110156109d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a790611166565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000639ae8f3eed18690bf451229d14953a5a5627b7216906323b872dd90610a4f90339030908690600401610f2f565b602060405180830381600087803b158015610a6957600080fd5b505af1158015610a7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa19190610e9d565b5033600090815260036020526040812080548290610abe90611207565b9182905550336000818152600660209081526040808320858452909152908190208590555191925082917f18a5ed48bb0a697c64a5aef8f28cec1f29ab01da27a45c5f835099781ef1ea4690610b159086906111c3565b60405180910390a35050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b72576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a79061101a565b60015473ffffffffffffffffffffffffffffffffffffffff82811691161415610b9a57600080fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000808473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401610c13929190610f60565b6040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610c619190610ed5565b6000604051808303816000865af19150503d8060008114610c9e576040519150601f19603f3d011682016040523d82523d6000602084013e610ca3565b606091505b5091509150818015610ccd575080511580610ccd575080806020019051810190610ccd9190610e9d565b610d03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a790610f86565b5050505050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051610d419190610ed5565b60006040518083038185875af1925050503d8060008114610d7e576040519150601f19603f3d011682016040523d82523d6000602084013e610d83565b606091505b5050905080610dbe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a790611109565b505050565b600060208284031215610dd4578081fd5b8135610ddf8161126f565b9392505050565b60008060408385031215610df8578081fd5b8235610e038161126f565b946020939093013593505050565b600080600060608486031215610e25578081fd5b8335610e308161126f565b92506020840135610e408161126f565b929592945050506040919091013590565b60008060408385031215610df8578182fd5b60008060008060808587031215610e78578081fd5b8435610e838161126f565b966020860135965060408601359560600135945092505050565b600060208284031215610eae578081fd5b81518015158114610ddf578182fd5b600060208284031215610ece578081fd5b5035919050565b60008251815b81811015610ef55760208186018101518583015201610edb565b81811115610f035782828501525b509190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b6020808252601f908201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604082015260600190565b6020808252602d908201527f4552433230546f4245503230577261707065723a2053686f756c64206265206760408201527f726561746572207468616e203000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2043616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f4552433230546f4245503230577261707065723a20416c72656164792070726f60408201527f6365737365640000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f4552433230546f4245503230577261707065723a2043616e2774206265207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526023908201527f5472616e7366657248656c7065723a204554485f5452414e534645525f46414960408201527f4c45440000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f4552433230546f4245503230577261707065723a2056616c756520746f6f207360408201527f6d616c6c00000000000000000000000000000000000000000000000000000000606082015260800190565b90815260200190565b918252602082015260400190565b9283526020830191909152604082015260600190565b60008282101561120257611202611240565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561123957611239611240565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461129157600080fd5b5056fea264697066735822122034de30d27e4b289aabd14dbb4d9fff1de419ea7f889b86900acfd74588b1722d64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000639ae8f3eed18690bf451229d14953a5a5627b72
-----Decoded View---------------
Arg [0] : nbu (address): 0x639ae8F3EEd18690bF451229d14953a5A5627b72
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000639ae8f3eed18690bf451229d14953a5a5627b72
Deployed Bytecode Sourcemap
2841:2979:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2987:27;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;5235:350;;;;;;:::i;:::-;;:::i;:::-;;3055:46;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;4190:679::-;;;;;;:::i;:::-;;:::i;5593:224::-;;;;;;:::i;:::-;;:::i;1253:204::-;;;:::i;4900:327::-;;;;;;:::i;:::-;;:::i;3243:54::-;;;;;;:::i;:::-;;:::i;3304:62::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;716:20::-;;;:::i;3108:48::-;;;;;;:::i;:::-;;:::i;3163:73::-;;;;;;:::i;:::-;;:::i;743:23::-;;;:::i;3021:25::-;;;:::i;3816:366::-;;;;;;:::i;:::-;;:::i;1088:157::-;;;;;;:::i;:::-;;:::i;2987:27::-;;;:::o;5235:350::-;1018:5;;;;1004:10;:19;996:64;;;;;;;;;;;;:::i;:::-;;;;;;;;;5332:16:::1;::::0;::::1;5324:71;;;;;;;;;;;;:::i;:::-;5423:1;5414:6;:10;5406:68;;;;;;;;;;;;:::i;:::-;5485:46;5513:5;5520:2;5524:6;5485:27;:46::i;:::-;5566:2;5547:30;;;5559:5;5570:6;5547:30;;;;;;;:::i;:::-;;;;;;;;5235:350:::0;;;:::o;3055:46::-;;;;;;;;;;;;;:::o;4190:679::-;1018:5;;;;1004:10;:19;996:64;;;;;;;;;;;;:::i;:::-;4296:18:::1;::::0;::::1;4288:73;;;;;;;;;;;;:::i;:::-;4380:30;::::0;::::1;;::::0;;;:24:::1;:30;::::0;;;;;;;:40;;;;;;;;;:45;4372:96:::1;;;;;;;;;;;;:::i;:::-;4489:12;:3;:12;;4502:4:::0;4508:12:::1;4517:3:::0;4508:6;:12:::1;:::i;:::-;4489:32;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;4553:22:0::1;::::0;::::1;4532:16;4553:22:::0;;;:16:::1;:22;::::0;;;;4551:24;;4532:16;;4551:24:::1;::::0;::::1;:::i;:::-;::::0;;;;-1:-1:-1;4586:30:0::1;::::0;::::1;;::::0;;;:24:::1;:30;::::0;;;;;;;:40;;;;;;;;:54;;;4651:13;;;:7:::1;:13:::0;;;;;:26;;;;;;;;;;:42;;;4704:30:::1;::::0;::::1;:36:::0;;;4751:35:::1;;:46:::0;;;4813:48;4551:24;;-1:-1:-1;4586:40:0;;4551:24;;4586:30;4813:48:::1;::::0;::::1;::::0;4651:42;;4704:36;;4813:48:::1;:::i;:::-;;;;;;;;1071:1;4190:679:::0;;;;:::o;5593:224::-;1018:5;;;;1004:10;:19;996:64;;;;;;;;;;;;:::i;:::-;5682:1:::1;5673:6;:10;5665:68;;;;;;;;;;;;:::i;:::-;5744:13;:22:::0;;;5782:27:::1;::::0;5760:6;;5782:27:::1;::::0;;;::::1;5593:224:::0;:::o;1253:204::-;1328:8;;;;1314:10;:22;1306:31;;;;;;1381:8;;;1374:5;;1353:37;;1381:8;;;;;1374:5;;;;1353:37;;;1409:8;;;;1401:16;;;;;;1409:8;;;1401:16;;;;1428:21;;;1253:204::o;4900:327::-;1018:5;;;;1004:10;:19;996:64;;;;;;;;;;;;:::i;:::-;4990:16:::1;::::0;::::1;4982:71;;;;;;;;;;;;:::i;:::-;5081:1;5072:6;:10;5064:68;;;;;;;;;;;;:::i;:::-;5143:42;5174:2;5178:6;5143:30;:42::i;:::-;5208:2;5201:18;;;5212:6;5201:18;;;;;;:::i;:::-;;;;;;;;4900:327:::0;;:::o;3243:54::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;3304:62::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;716:20::-;;;;;;:::o;3108:48::-;;;;;;;;;;;;;:::o;3163:73::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;743:23::-;;;;;;:::o;3021:25::-;;;;:::o;3816:366::-;3881:13;;3871:6;:23;;3863:72;;;;;;;;;;;;:::i;:::-;3956:51;;;;;:16;:3;:16;;;;:51;;3973:10;;3993:4;;4000:6;;3956:51;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;4056:10:0;4018:18;4041:26;;;:14;:26;;;;;4039:28;;4018:18;;4039:28;;;:::i;:::-;;;;;-1:-1:-1;4084:10:0;4078:17;;;;:5;:17;;;;;;;;:32;;;;;;;;;;:41;;;4135:39;4039:28;;-1:-1:-1;4039:28:0;;4135:39;;;;4113:6;;4135:39;:::i;:::-;;;;;;;;3816:366;;:::o;1088:157::-;1018:5;;;;1004:10;:19;996:64;;;;;;;;;;;;:::i;:::-;1193:8:::1;::::0;::::1;1176:25:::0;;::::1;1193:8:::0;::::1;1176:25;;1168:34;;;::::0;::::1;;1213:8;:24:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;1088:157::o;1860:361::-;2009:12;2023:17;2044:5;:10;;2078;2090:2;2094:5;2055:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2044:57;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2008:93;;;;2120:7;:57;;;;-1:-1:-1;2132:11:0;;:16;;:44;;;2163:4;2152:24;;;;;;;;;;;;:::i;:::-;2112:101;;;;;;;;;;;;:::i;:::-;1860:361;;;;;:::o;2639:195::-;2747:12;;;2709;2747;;;;;;;;;2726:7;;;;2740:5;;2726:34;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2708:52;;;2779:7;2771:55;;;;;;;;;;;;:::i;:::-;2639:195;;;:::o;14:259:1:-;;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:33;237:5;210:33;:::i;:::-;262:5;84:189;-1:-1:-1;;;84:189:1:o;278:335::-;;;415:2;403:9;394:7;390:23;386:32;383:2;;;436:6;428;421:22;383:2;480:9;467:23;499:33;526:5;499:33;:::i;:::-;551:5;603:2;588:18;;;;575:32;;-1:-1:-1;;;373:240:1:o;618:470::-;;;;764:2;752:9;743:7;739:23;735:32;732:2;;;785:6;777;770:22;732:2;829:9;816:23;848:33;875:5;848:33;:::i;:::-;900:5;-1:-1:-1;957:2:1;942:18;;929:32;970:35;929:32;970:35;:::i;:::-;722:366;;1024:7;;-1:-1:-1;;;1078:2:1;1063:18;;;;1050:32;;722:366::o;1093:327::-;;;1222:2;1210:9;1201:7;1197:23;1193:32;1190:2;;;1243:6;1235;1228:22;1425:464;;;;;1588:3;1576:9;1567:7;1563:23;1559:33;1556:2;;;1610:6;1602;1595:22;1556:2;1654:9;1641:23;1673:33;1700:5;1673:33;:::i;:::-;1725:5;1777:2;1762:18;;1749:32;;-1:-1:-1;1828:2:1;1813:18;;1800:32;;1879:2;1864:18;1851:32;;-1:-1:-1;1546:343:1;-1:-1:-1;;;1546:343:1:o;1894:297::-;;2014:2;2002:9;1993:7;1989:23;1985:32;1982:2;;;2035:6;2027;2020:22;1982:2;2072:9;2066:16;2125:5;2118:13;2111:21;2104:5;2101:32;2091:2;;2152:6;2144;2137:22;2196:190;;2308:2;2296:9;2287:7;2283:23;2279:32;2276:2;;;2329:6;2321;2314:22;2276:2;-1:-1:-1;2357:23:1;;2266:120;-1:-1:-1;2266:120:1:o;2391:430::-;;2558:6;2552:13;2583:3;2595:129;2609:6;2606:1;2603:13;2595:129;;;2707:4;2691:14;;;2687:25;;2681:32;2668:11;;;2661:53;2624:12;2595:129;;;2742:6;2739:1;2736:13;2733:2;;;2777:3;2768:6;2763:3;2759:16;2752:29;2733:2;-1:-1:-1;2799:16:1;;;;;2528:293;-1:-1:-1;;2528:293:1:o;2826:226::-;3002:42;2990:55;;;;2972:74;;2960:2;2945:18;;2927:125::o;3057:398::-;3269:42;3338:15;;;3320:34;;3390:15;;;;3385:2;3370:18;;3363:43;3437:2;3422:18;;3415:34;;;;3247:2;3232:18;;3214:241::o;3460:297::-;3664:42;3652:55;;;;3634:74;;3739:2;3724:18;;3717:34;3622:2;3607:18;;3589:168::o;4006:355::-;4208:2;4190:21;;;4247:2;4227:18;;;4220:30;4286:33;4281:2;4266:18;;4259:61;4352:2;4337:18;;4180:181::o;4366:409::-;4568:2;4550:21;;;4607:2;4587:18;;;4580:30;4646:34;4641:2;4626:18;;4619:62;4717:15;4712:2;4697:18;;4690:43;4765:3;4750:19;;4540:235::o;4780:356::-;4982:2;4964:21;;;5001:18;;;4994:30;5060:34;5055:2;5040:18;;5033:62;5127:2;5112:18;;4954:182::o;5141:402::-;5343:2;5325:21;;;5382:2;5362:18;;;5355:30;5421:34;5416:2;5401:18;;5394:62;5492:8;5487:2;5472:18;;5465:36;5533:3;5518:19;;5315:228::o;5548:406::-;5750:2;5732:21;;;5789:2;5769:18;;;5762:30;5828:34;5823:2;5808:18;;5801:62;5899:12;5894:2;5879:18;;5872:40;5944:3;5929:19;;5722:232::o;5959:399::-;6161:2;6143:21;;;6200:2;6180:18;;;6173:30;6239:34;6234:2;6219:18;;6212:62;6310:5;6305:2;6290:18;;6283:33;6348:3;6333:19;;6133:225::o;6363:400::-;6565:2;6547:21;;;6604:2;6584:18;;;6577:30;6643:34;6638:2;6623:18;;6616:62;6714:6;6709:2;6694:18;;6687:34;6753:3;6738:19;;6537:226::o;6768:177::-;6914:25;;;6902:2;6887:18;;6869:76::o;6950:248::-;7124:25;;;7180:2;7165:18;;7158:34;7112:2;7097:18;;7079:119::o;7203:319::-;7405:25;;;7461:2;7446:18;;7439:34;;;;7504:2;7489:18;;7482:34;7393:2;7378:18;;7360:162::o;7527:125::-;;7595:1;7592;7589:8;7586:2;;;7600:18;;:::i;:::-;-1:-1:-1;7637:9:1;;7576:76::o;7657:195::-;;7727:66;7720:5;7717:77;7714:2;;;7797:18;;:::i;:::-;-1:-1:-1;7844:1:1;7833:13;;7704:148::o;7857:184::-;7909:77;7906:1;7899:88;8006:4;8003:1;7996:15;8030:4;8027:1;8020:15;8046:156;8134:42;8127:5;8123:54;8116:5;8113:65;8103:2;;8192:1;8189;8182:12;8103:2;8093:109;:::o
Swarm Source
ipfs://34de30d27e4b289aabd14dbb4d9fff1de419ea7f889b86900acfd74588b1722d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.