Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 6,648 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Migrate | 21562373 | 30 hrs ago | IN | 0 ETH | 0.00033137 | ||||
Migrate | 21562371 | 30 hrs ago | IN | 0 ETH | 0.00129974 | ||||
Migrate | 21556813 | 2 days ago | IN | 0 ETH | 0.00098714 | ||||
Migrate | 21544830 | 3 days ago | IN | 0 ETH | 0.00291748 | ||||
Migrate | 21528944 | 5 days ago | IN | 0 ETH | 0.00133445 | ||||
Migrate | 21525556 | 6 days ago | IN | 0 ETH | 0.0009414 | ||||
Migrate | 21500783 | 9 days ago | IN | 0 ETH | 0.00070011 | ||||
Migrate | 21498656 | 10 days ago | IN | 0 ETH | 0.00052837 | ||||
Migrate | 21497600 | 10 days ago | IN | 0 ETH | 0.00104029 | ||||
Migrate | 21497140 | 10 days ago | IN | 0 ETH | 0.00076108 | ||||
Migrate | 21489867 | 11 days ago | IN | 0 ETH | 0.00088709 | ||||
Migrate | 21488604 | 11 days ago | IN | 0 ETH | 0.00119363 | ||||
Migrate | 21476278 | 13 days ago | IN | 0 ETH | 0.00054875 | ||||
Migrate | 21427508 | 20 days ago | IN | 0 ETH | 0.00177821 | ||||
Migrate | 21426716 | 20 days ago | IN | 0 ETH | 0.0017838 | ||||
Migrate | 21420286 | 21 days ago | IN | 0 ETH | 0.00165547 | ||||
Migrate | 21406628 | 23 days ago | IN | 0 ETH | 0.00106406 | ||||
Migrate | 21398148 | 24 days ago | IN | 0 ETH | 0.00165656 | ||||
Migrate | 21389530 | 25 days ago | IN | 0 ETH | 0.00246045 | ||||
Migrate | 21372835 | 27 days ago | IN | 0 ETH | 0.00739695 | ||||
Migrate | 21363014 | 29 days ago | IN | 0 ETH | 0.00203822 | ||||
Migrate | 21362678 | 29 days ago | IN | 0 ETH | 0.00180877 | ||||
Migrate | 21362298 | 29 days ago | IN | 0 ETH | 0.00175511 | ||||
Migrate | 21361660 | 29 days ago | IN | 0 ETH | 0.00214622 | ||||
Migrate | 21353158 | 30 days ago | IN | 0 ETH | 0.00222213 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TokenMigrator
Compiler Version
v0.8.12+commit.f00d7308
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-08-08 */ /** *Submitted for verification at Etherscan.io on 2022-07-26 */ // Sources flattened with hardhat v2.9.2 https://hardhat.org // File @rari-capital/solmate/src/tokens/[email protected] /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*/////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*/////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*/////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*/////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*/////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*/////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*/////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline)) ) ); address recoveredAddress = ecrecover(digest, v, r, s); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*/////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } } // File @rari-capital/solmate/src/utils/[email protected] /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @author Modified from Gnosis (https://github.com/gnosis/gp-v2-contracts/blob/main/src/contracts/libraries/GPv2SafeERC20.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. library SafeTransferLib { /*/////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool callStatus; assembly { // Transfer the ETH and store if it succeeded or not. callStatus := call(gas(), to, amount, 0, 0, 0, 0) } require(callStatus, "ETH_TRANSFER_FAILED"); } /*/////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool callStatus; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata to memory piece by piece: mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) // Begin with the function selector. mstore(add(freeMemoryPointer, 4), and(from, 0xffffffffffffffffffffffffffffffffffffffff)) // Mask and append the "from" argument. mstore(add(freeMemoryPointer, 36), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Mask and append the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Finally append the "amount" argument. No mask as it's a full 32 byte value. // Call the token and store if it succeeded or not. // We use 100 because the calldata length is 4 + 32 * 3. callStatus := call(gas(), token, 0, freeMemoryPointer, 100, 0, 0) } require(didLastOptionalReturnCallSucceed(callStatus), "TRANSFER_FROM_FAILED"); } function safeTransfer( ERC20 token, address to, uint256 amount ) internal { bool callStatus; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata to memory piece by piece: mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) // Begin with the function selector. mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Mask and append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Finally append the "amount" argument. No mask as it's a full 32 byte value. // Call the token and store if it succeeded or not. // We use 68 because the calldata length is 4 + 32 * 2. callStatus := call(gas(), token, 0, freeMemoryPointer, 68, 0, 0) } require(didLastOptionalReturnCallSucceed(callStatus), "TRANSFER_FAILED"); } function safeApprove( ERC20 token, address to, uint256 amount ) internal { bool callStatus; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata to memory piece by piece: mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) // Begin with the function selector. mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Mask and append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Finally append the "amount" argument. No mask as it's a full 32 byte value. // Call the token and store if it succeeded or not. // We use 68 because the calldata length is 4 + 32 * 2. callStatus := call(gas(), token, 0, freeMemoryPointer, 68, 0, 0) } require(didLastOptionalReturnCallSucceed(callStatus), "APPROVE_FAILED"); } /*/////////////////////////////////////////////////////////////// INTERNAL HELPER LOGIC //////////////////////////////////////////////////////////////*/ function didLastOptionalReturnCallSucceed(bool callStatus) private pure returns (bool success) { assembly { // Get how many bytes the call returned. let returnDataSize := returndatasize() // If the call reverted: if iszero(callStatus) { // Copy the revert message into memory. returndatacopy(0, 0, returnDataSize) // Revert with the same message. revert(0, returnDataSize) } switch returnDataSize case 32 { // Copy the return data into memory. returndatacopy(0, 0, returnDataSize) // Set success to whether it returned true. success := iszero(iszero(mload(0))) } case 0 { // There was no return data. success := 1 } default { // It returned some malformed input. success := 0 } } } } // File @openzeppelin/contracts/token/ERC20/[email protected] // // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); /** * @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); } // File @openzeppelin/contracts/utils/[email protected] // // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] // // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File contracts/interfaces/IStaking.sol // interface IStaking { function stake(uint256 _amount, address _recipient) external returns (bool); function claim(address recipient) external; function unstake(uint256 _amount, bool _trigger) external; function index() external view returns (uint256); } // File contracts/interfaces/IWXBTRFLY.sol // interface IWXBTRFLY is IERC20 { function wrapFromBTRFLY(uint256 _amount) external returns (uint256); function unwrapToBTRFLY(uint256 _amount) external returns (uint256); function wrapFromxBTRFLY(uint256 _amount) external returns (uint256); function unwrapToxBTRFLY(uint256 _amount) external returns (uint256); function xBTRFLYValue(uint256 _amount) external view returns (uint256); function wBTRFLYValue(uint256 _amount) external view returns (uint256); function realIndex() external view returns (uint256); } // File contracts/interfaces/IBTRFLY.sol // interface IBTRFLY is IERC20 { function mint(address account_, uint256 amount_) external; function burn(uint256 amount) external; function burnFrom(address account_, uint256 amount_) external; } // File contracts/interfaces/IMariposa.sol // interface IMariposa { function mintFor(address _recipient, uint256 amount) external; } // File @rari-capital/solmate/src/utils/[email protected] /// @notice Gas optimized reentrancy protection for smart contracts. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/ReentrancyGuard.sol) /// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol) abstract contract ReentrancyGuard { uint256 private reentrancyStatus = 1; modifier nonReentrant() { require(reentrancyStatus == 1, "REENTRANCY"); reentrancyStatus = 2; _; reentrancyStatus = 1; } } // File @openzeppelin/contracts/utils/[email protected] // // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } // File @openzeppelin/contracts/access/[email protected] // // OpenZeppelin Contracts v4.4.1 (access/Ownable.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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public 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); } } // File contracts/core/RLBTRFLY.sol // /// @title RLBTRFLY /// @author ████ /** @notice Partially adapted from Convex's CvxLockerV2 contract with some modifications and optimizations for the BTRFLY V2 requirements */ contract RLBTRFLY is ReentrancyGuard, Ownable { using SafeTransferLib for ERC20; /** @notice Lock balance details @param amount uint224 Locked amount in the lock @param unlockTime uint32 Unlock time of the lock */ struct LockedBalance { uint224 amount; uint32 unlockTime; } /** @notice Balance details @param locked uint224 Overall locked amount @param nextUnlockIndex uint32 Index of earliest next unlock @param lockedBalances LockedBalance[] List of locked balances data */ struct Balance { uint224 locked; uint32 nextUnlockIndex; LockedBalance[] lockedBalances; } // 1 epoch = 1 week uint32 public constant EPOCH_DURATION = 1 weeks; // Full lock duration = 16 epochs uint256 public constant LOCK_DURATION = 16 * EPOCH_DURATION; ERC20 public immutable btrflyV2; uint256 public lockedSupply; mapping(address => Balance) public balances; bool public isShutdown; string public constant name = "Revenue-Locked BTRFLY"; string public constant symbol = "rlBTRFLY"; uint8 public constant decimals = 18; event Shutdown(); event Locked( address indexed account, uint256 indexed epoch, uint256 amount ); event Withdrawn(address indexed account, uint256 amount, bool relock); error ZeroAddress(); error ZeroAmount(); error IsShutdown(); error InvalidNumber(uint256 value); /** @param _btrflyV2 address BTRFLYV2 token address */ constructor(address _btrflyV2) { if (_btrflyV2 == address(0)) revert ZeroAddress(); btrflyV2 = ERC20(_btrflyV2); } /** @notice Emergency method to shutdown the current locker contract which also force-unlock all locked tokens */ function shutdown() external onlyOwner { if (isShutdown) revert IsShutdown(); isShutdown = true; emit Shutdown(); } /** @notice Locked balance of the specified account including those with expired locks @param account address Account @return amount uint256 Amount */ function lockedBalanceOf(address account) external view returns (uint256 amount) { return balances[account].locked; } /** @notice Balance of the specified account by only including tokens in active locks @param account address Account @return amount uint256 Amount */ function balanceOf(address account) external view returns (uint256 amount) { // Using storage as it's actually cheaper than allocating a new memory based variable Balance storage userBalance = balances[account]; LockedBalance[] storage locks = userBalance.lockedBalances; uint256 nextUnlockIndex = userBalance.nextUnlockIndex; amount = balances[account].locked; uint256 locksLength = locks.length; // Skip all old records for (uint256 i = nextUnlockIndex; i < locksLength; ++i) { if (locks[i].unlockTime <= block.timestamp) { amount -= locks[i].amount; } else { break; } } // Remove amount locked in the next epoch if ( locksLength > 0 && uint256(locks[locksLength - 1].unlockTime) - LOCK_DURATION > getCurrentEpoch() ) { amount -= locks[locksLength - 1].amount; } return amount; } /** @notice Pending locked amount at the specified account @param account address Account @return amount uint256 Amount */ function pendingLockOf(address account) external view returns (uint256 amount) { LockedBalance[] storage locks = balances[account].lockedBalances; uint256 locksLength = locks.length; if ( locksLength > 0 && uint256(locks[locksLength - 1].unlockTime) - LOCK_DURATION > getCurrentEpoch() ) { return locks[locksLength - 1].amount; } return 0; } /** @notice Locked balances details for the specifed account @param account address Account @return total uint256 Total amount @return unlockable uint256 Unlockable amount @return locked uint256 Locked amount @return lockData LockedBalance[] List of active locks */ function lockedBalances(address account) external view returns ( uint256 total, uint256 unlockable, uint256 locked, LockedBalance[] memory lockData ) { Balance storage userBalance = balances[account]; LockedBalance[] storage locks = userBalance.lockedBalances; uint256 nextUnlockIndex = userBalance.nextUnlockIndex; uint256 idx; for (uint256 i = nextUnlockIndex; i < locks.length; ++i) { if (locks[i].unlockTime > block.timestamp) { if (idx == 0) { lockData = new LockedBalance[](locks.length - i); } lockData[idx] = locks[i]; locked += lockData[idx].amount; ++idx; } else { unlockable += locks[i].amount; } } return (userBalance.locked, unlockable, locked, lockData); } /** @notice Get current epoch @return uint256 Current epoch */ function getCurrentEpoch() public view returns (uint256) { return (block.timestamp / EPOCH_DURATION) * EPOCH_DURATION; } /** @notice Locked tokens cannot be withdrawn for the entire lock duration and are eligible to receive rewards @param account address Account @param amount uint256 Amount */ function lock(address account, uint256 amount) external nonReentrant { if (account == address(0)) revert ZeroAddress(); if (amount == 0) revert ZeroAmount(); btrflyV2.safeTransferFrom(msg.sender, address(this), amount); _lock(account, amount); } /** @notice Perform the actual lock @param account address Account @param amount uint256 Amount */ function _lock(address account, uint256 amount) internal { if (isShutdown) revert IsShutdown(); Balance storage balance = balances[account]; uint224 lockAmount = _toUint224(amount); balance.locked += lockAmount; lockedSupply += lockAmount; uint256 lockEpoch = getCurrentEpoch() + EPOCH_DURATION; uint256 unlockTime = lockEpoch + LOCK_DURATION; LockedBalance[] storage locks = balance.lockedBalances; uint256 idx = locks.length; // If the latest user lock is smaller than this lock, add a new entry to the end of the list // else, append it to the latest user lock if (idx == 0 || locks[idx - 1].unlockTime < unlockTime) { locks.push( LockedBalance({ amount: lockAmount, unlockTime: _toUint32(unlockTime) }) ); } else { locks[idx - 1].amount += lockAmount; } emit Locked(account, lockEpoch, amount); } /** @notice Withdraw all currently locked tokens where the unlock time has passed @param account address Account @param relock bool Whether should relock @param withdrawTo address Target receiver */ function _processExpiredLocks( address account, bool relock, address withdrawTo ) internal { // Using storage as it's actually cheaper than allocating a new memory based variable Balance storage userBalance = balances[account]; LockedBalance[] storage locks = userBalance.lockedBalances; uint224 locked; uint256 length = locks.length; if (isShutdown || locks[length - 1].unlockTime <= block.timestamp) { locked = userBalance.locked; userBalance.nextUnlockIndex = _toUint32(length); } else { // Using nextUnlockIndex to reduce the number of loops uint32 nextUnlockIndex = userBalance.nextUnlockIndex; for (uint256 i = nextUnlockIndex; i < length; ++i) { // Unlock time must be less or equal to time if (locks[i].unlockTime > block.timestamp) break; // Add to cumulative amounts locked += locks[i].amount; ++nextUnlockIndex; } // Update the account's next unlock index userBalance.nextUnlockIndex = nextUnlockIndex; } if (locked == 0) revert ZeroAmount(); // Update user balances and total supplies userBalance.locked -= locked; lockedSupply -= locked; emit Withdrawn(account, locked, relock); // Relock or return to user if (relock) { _lock(withdrawTo, locked); } else { btrflyV2.safeTransfer(withdrawTo, locked); } } /** @notice Withdraw expired locks to a different address @param to address Target receiver */ function withdrawExpiredLocksTo(address to) external nonReentrant { if (to == address(0)) revert ZeroAddress(); _processExpiredLocks(msg.sender, false, to); } /** @notice Withdraw/relock all currently locked tokens where the unlock time has passed @param relock bool Whether should relock */ function processExpiredLocks(bool relock) external nonReentrant { _processExpiredLocks(msg.sender, relock, msg.sender); } /** @notice Validate and cast a uint256 integer to uint224 @param value uint256 Value @return uint224 Casted value */ function _toUint224(uint256 value) internal pure returns (uint224) { if (value > type(uint224).max) revert InvalidNumber(value); return uint224(value); } /** @notice Validate and cast a uint256 integer to uint32 @param value uint256 Value @return uint32 Casted value */ function _toUint32(uint256 value) internal pure returns (uint32) { if (value > type(uint32).max) revert InvalidNumber(value); return uint32(value); } } // File contracts/core/TokenMigrator.sol // SPDX-License-Identifier: MIT pragma solidity 0.8.12; /// @title BTRFLY V1 => V2 Token Migrator /// @author Realkinando /** @notice Enables users to convert BTRFLY, xBTRFLY & wxBTRFLY to BTRFLYV2, at a rate based on the wxStaking Index. Dependent on the contract having a sufficient allowance from Mariposa. receives btrfly/xBtrfly/wxBtrfly --> requests wx value for recipient --> unwraps btrfly and burns */ contract TokenMigrator { using SafeERC20 for IBTRFLY; using SafeERC20 for IWXBTRFLY; using SafeTransferLib for ERC20; IWXBTRFLY public immutable wxBtrfly; ERC20 public immutable xBtrfly; ERC20 public immutable btrflyV2; IBTRFLY public immutable btrfly; IMariposa public immutable mariposa; IStaking public immutable staking; RLBTRFLY public immutable rlBtrfly; error ZeroAddress(); event Migrate( uint256 wxAmount, uint256 xAmount, uint256 v1Amount, address indexed recipient, bool indexed lock, address indexed caller ); /** @param wxBtrfly_ address wxBTRFLY token address @param xBtrfly_ address xBTRFLY token address @param btrflyV2_ address BTRFLYV2 token address @param btrfly_ address BTRFLY token address @param mariposa_ address Mariposa contract address @param staking_ address Staking contract address @param rlBtrfly_ address rlBTRFLY token address */ constructor( address wxBtrfly_, address xBtrfly_, address btrflyV2_, address btrfly_, address mariposa_, address staking_, address rlBtrfly_ ) { if (wxBtrfly_ == address(0)) revert ZeroAddress(); if (xBtrfly_ == address(0)) revert ZeroAddress(); if (btrflyV2_ == address(0)) revert ZeroAddress(); if (btrfly_ == address(0)) revert ZeroAddress(); if (mariposa_ == address(0)) revert ZeroAddress(); if (staking_ == address(0)) revert ZeroAddress(); if (rlBtrfly_ == address(0)) revert ZeroAddress(); wxBtrfly = IWXBTRFLY(wxBtrfly_); xBtrfly = ERC20(xBtrfly_); btrflyV2 = ERC20(btrflyV2_); btrfly = IBTRFLY(btrfly_); mariposa = IMariposa(mariposa_); staking = IStaking(staking_); rlBtrfly = RLBTRFLY(rlBtrfly_); xBtrfly.safeApprove(staking_, type(uint256).max); btrflyV2.safeApprove(rlBtrfly_, type(uint256).max); } /** @notice Migrate wxBTRFLY to BTRFLYV2 @param amount uint256 Amount of wxBTRFLY to convert to BTRFLYV2 @return uint256 Amount of BTRFLY to burn */ function _migrateWxBtrfly(uint256 amount) internal returns (uint256) { // Take custody of wxBTRFLY and unwrap to BTRFLY wxBtrfly.safeTransferFrom(msg.sender, address(this), amount); return wxBtrfly.unwrapToBTRFLY(amount); } /** @notice Migrate xBTRFLY to BTRFLYV2 @param amount uint256 Amount of xBTRFLY to convert to BTRFLYV2 @return mintAmount uint256 Amount of BTRFLYV2 to mint */ function _migrateXBtrfly(uint256 amount) internal returns (uint256 mintAmount) { // Unstake xBTRFLY xBtrfly.safeTransferFrom(msg.sender, address(this), amount); staking.unstake(amount, false); return wxBtrfly.wBTRFLYValue(amount); } /** @notice Migrate BTRFLY to BTRFLYV2 @param amount uint256 Amount of BTRFLY to convert to BTRFLYV2 @return mintAmount uint256 Amount of BTRFLYV2 to mint */ function _migrateBtrfly(uint256 amount) internal returns (uint256 mintAmount) { btrfly.safeTransferFrom(msg.sender, address(this), amount); return wxBtrfly.wBTRFLYValue(amount); } /** @notice Migrates multiple different BTRFLY token types to V2 @param wxAmount uint256 Amount of wxBTRFLY @param xAmount uint256 Amount of xBTRFLY @param v1Amount uint256 Amount of BTRFLY @param recipient address Address receiving V2 BTRFLY @param lock bool Whether or not to lock */ function migrate( uint256 wxAmount, uint256 xAmount, uint256 v1Amount, address recipient, bool lock ) external { if (recipient == address(0)) revert ZeroAddress(); emit Migrate(wxAmount, xAmount, v1Amount, recipient, lock, msg.sender); uint256 burnAmount; uint256 mintAmount; if (wxAmount != 0) { burnAmount = _migrateWxBtrfly(wxAmount); mintAmount = wxAmount; } if (xAmount != 0) { burnAmount += xAmount; mintAmount += _migrateXBtrfly(xAmount); } if (v1Amount != 0) { burnAmount += v1Amount; mintAmount += _migrateBtrfly(v1Amount); } btrfly.burn(burnAmount); _mintBtrflyV2(mintAmount, recipient, lock); } /** @notice Mint BTRFLYV2 and (optionally) lock @param amount uint256 Amount of BTRFLYV2 to mint @param recipient address Address to receive V2 BTRFLY @param lock bool Whether or not to lock */ function _mintBtrflyV2( uint256 amount, address recipient, bool lock ) internal { // If locking, mint BTRFLYV2 for TokenMigrator, who will lock on behalf of recipient mariposa.mintFor(lock ? address(this) : recipient, amount); if (lock) rlBtrfly.lock(recipient, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"wxBtrfly_","type":"address"},{"internalType":"address","name":"xBtrfly_","type":"address"},{"internalType":"address","name":"btrflyV2_","type":"address"},{"internalType":"address","name":"btrfly_","type":"address"},{"internalType":"address","name":"mariposa_","type":"address"},{"internalType":"address","name":"staking_","type":"address"},{"internalType":"address","name":"rlBtrfly_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"wxAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"v1Amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"bool","name":"lock","type":"bool"},{"indexed":true,"internalType":"address","name":"caller","type":"address"}],"name":"Migrate","type":"event"},{"inputs":[],"name":"btrfly","outputs":[{"internalType":"contract IBTRFLY","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"btrflyV2","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mariposa","outputs":[{"internalType":"contract IMariposa","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"wxAmount","type":"uint256"},{"internalType":"uint256","name":"xAmount","type":"uint256"},{"internalType":"uint256","name":"v1Amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"lock","type":"bool"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rlBtrfly","outputs":[{"internalType":"contract RLBTRFLY","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"contract IStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wxBtrfly","outputs":[{"internalType":"contract IWXBTRFLY","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xBtrfly","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101606040523480156200001257600080fd5b5060405162001052380380620010528339810160408190526200003591620002c4565b6001600160a01b0387166200005d5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b038616620000855760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b038516620000ad5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b038416620000d55760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b038316620000fd5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b038216620001255760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b0381166200014d5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b0387811660805286811660a081905286821660c05285821660e0528482166101005283821661012052908216610140526200019f9083600019620001d5602090811b6200033e17901c565b620001c88160001960c0516001600160a01b0316620001d560201b6200033e179092919060201c565b5050505050505062000359565b600060405163095ea7b360e01b81526001600160a01b03841660048201528260248201526000806044836000895af19150620002139050816200025b565b620002555760405162461bcd60e51b815260206004820152600e60248201526d1054141493d59157d1905253115160921b604482015260640160405180910390fd5b50505050565b60003d826200026e57806000803e806000fd5b8060208114620002895780156200029b5760009250620002a0565b816000803e60005115159250620002a0565b600192505b5050919050565b80516001600160a01b0381168114620002bf57600080fd5b919050565b600080600080600080600060e0888a031215620002e057600080fd5b620002eb88620002a7565b9650620002fb60208901620002a7565b95506200030b60408901620002a7565b94506200031b60608901620002a7565b93506200032b60808901620002a7565b92506200033b60a08901620002a7565b91506200034b60c08901620002a7565b905092959891949750929550565b60805160a05160c05160e051610100516101205161014051610c5a620003f8600039600081816101ad01526106f301526000818160a701526104dd01526000818161015f015261062d015260008181610111015281816102c601526105b60152600060ea0152600081816101860152610498015260008181610138015281816103d00152818161040e0152818161055501526105f40152610c5a6000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063941d6d0e1161005b578063941d6d0e14610133578063b43d741c1461015a578063d8fa81ef14610181578063da43af9f146101a857600080fd5b8063323e8e741461008d5780634cf088d9146100a257806380afa51f146100e5578063841560051461010c575b600080fd5b6100a061009b366004610aeb565b6101cf565b005b6100c97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b6100c97f000000000000000000000000000000000000000000000000000000000000000081565b6100c97f000000000000000000000000000000000000000000000000000000000000000081565b6100c97f000000000000000000000000000000000000000000000000000000000000000081565b6100c97f000000000000000000000000000000000000000000000000000000000000000081565b6100c97f000000000000000000000000000000000000000000000000000000000000000081565b6100c97f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b0382166101f65760405163d92e233d60e01b815260040160405180910390fd5b60408051868152602081018690529081018490523390821515906001600160a01b038516907ffb4fa0c1e3394566ca16c7045e2cb7c48a163744e90561215f72fa0782c34e8a9060600160405180910390a460008086156102605761025a876103c1565b91508690505b8515610288576102708683610b4d565b915061027b86610489565b6102859082610b4d565b90505b84156102b0576102988583610b4d565b91506102a3856105a7565b6102ad9082610b4d565b90505b604051630852cd8d60e31b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342966c6890602401600060405180830381600087803b15801561031257600080fd5b505af1158015610326573d6000803e3d6000fd5b5050505061033581858561062b565b50505050505050565b600060405163095ea7b360e01b81526001600160a01b03841660048201528260248201526000806044836000895af191505061037981610750565b6103bb5760405162461bcd60e51b815260206004820152600e60248201526d1054141493d59157d1905253115160921b60448201526064015b60405180910390fd5b50505050565b60006103f86001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333085610797565b604051634a97344b60e01b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634a97344b906024016020604051808303816000875af115801561045f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104839190610b73565b92915050565b60006104c06001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330856107f1565b6040516327afaa2360e21b815260048101839052600060248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690639ebea88c90604401600060405180830381600087803b15801561052957600080fd5b505af115801561053d573d6000803e3d6000fd5b505060405163f968345360e01b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316925063f968345391506024015b602060405180830381865afa15801561045f573d6000803e3d6000fd5b60006105de6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333085610797565b60405163f968345360e01b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f96834539060240161058a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663da1919b3826106655783610667565b305b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101869052604401600060405180830381600087803b1580156106af57600080fd5b505af11580156106c3573d6000803e3d6000fd5b50505050801561074b5760405163282d3fdf60e01b81526001600160a01b038381166004830152602482018590527f0000000000000000000000000000000000000000000000000000000000000000169063282d3fdf90604401600060405180830381600087803b15801561073757600080fd5b505af1158015610335573d6000803e3d6000fd5b505050565b60003d8261076257806000803e806000fd5b806020811461077a57801561078b5760009250610790565b816000803e60005115159250610790565b600192505b5050919050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526103bb908590610885565b60006040516323b872dd60e01b81526001600160a01b03851660048201526001600160a01b038416602482015282604482015260008060648360008a5af191505061083b81610750565b61087e5760405162461bcd60e51b81526020600482015260146024820152731514905394d1915497d19493d357d1905253115160621b60448201526064016103b2565b5050505050565b60006108da826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109579092919063ffffffff16565b80519091501561074b57808060200190518101906108f89190610b8c565b61074b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103b2565b60606109668484600085610970565b90505b9392505050565b6060824710156109d15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103b2565b6001600160a01b0385163b610a285760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103b2565b600080866001600160a01b03168587604051610a449190610bd5565b60006040518083038185875af1925050503d8060008114610a81576040519150601f19603f3d011682016040523d82523d6000602084013e610a86565b606091505b5091509150610a96828286610aa1565b979650505050505050565b60608315610ab0575081610969565b825115610ac05782518084602001fd5b8160405162461bcd60e51b81526004016103b29190610bf1565b8015158114610ae857600080fd5b50565b600080600080600060a08688031215610b0357600080fd5b85359450602086013593506040860135925060608601356001600160a01b0381168114610b2f57600080fd5b91506080860135610b3f81610ada565b809150509295509295909350565b60008219821115610b6e57634e487b7160e01b600052601160045260246000fd5b500190565b600060208284031215610b8557600080fd5b5051919050565b600060208284031215610b9e57600080fd5b815161096981610ada565b60005b83811015610bc4578181015183820152602001610bac565b838111156103bb5750506000910152565b60008251610be7818460208701610ba9565b9190910192915050565b6020815260008251806020840152610c10816040850160208701610ba9565b601f01601f1916919091016040019291505056fea264697066735822122058c0525b03f0949eb8b18b3e63951f7441188186a4033e1f91463e603d45807a64736f6c634300080c00330000000000000000000000004b16d95ddf1ae4fe8227ed7b7e80cf13275e61c9000000000000000000000000cc94faf235cc5d3bf4bed3a30db5984306c86abc000000000000000000000000c55126051b22ebb829d00368f4b12bde432de5da000000000000000000000000c0d4ceb216b3ba9c3701b291766fdcba977cec3a000000000000000000000000ca0f30b51963c4532d95016098d74f0df9e4518b000000000000000000000000bde4dfb0dbb0dd8833efb6c5bd0ce048c852c487000000000000000000000000742b70151cd3bc7ab598aaff1d54b90c3ebc6027
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063941d6d0e1161005b578063941d6d0e14610133578063b43d741c1461015a578063d8fa81ef14610181578063da43af9f146101a857600080fd5b8063323e8e741461008d5780634cf088d9146100a257806380afa51f146100e5578063841560051461010c575b600080fd5b6100a061009b366004610aeb565b6101cf565b005b6100c97f000000000000000000000000bde4dfb0dbb0dd8833efb6c5bd0ce048c852c48781565b6040516001600160a01b03909116815260200160405180910390f35b6100c97f000000000000000000000000c55126051b22ebb829d00368f4b12bde432de5da81565b6100c97f000000000000000000000000c0d4ceb216b3ba9c3701b291766fdcba977cec3a81565b6100c97f0000000000000000000000004b16d95ddf1ae4fe8227ed7b7e80cf13275e61c981565b6100c97f000000000000000000000000ca0f30b51963c4532d95016098d74f0df9e4518b81565b6100c97f000000000000000000000000cc94faf235cc5d3bf4bed3a30db5984306c86abc81565b6100c97f000000000000000000000000742b70151cd3bc7ab598aaff1d54b90c3ebc602781565b6001600160a01b0382166101f65760405163d92e233d60e01b815260040160405180910390fd5b60408051868152602081018690529081018490523390821515906001600160a01b038516907ffb4fa0c1e3394566ca16c7045e2cb7c48a163744e90561215f72fa0782c34e8a9060600160405180910390a460008086156102605761025a876103c1565b91508690505b8515610288576102708683610b4d565b915061027b86610489565b6102859082610b4d565b90505b84156102b0576102988583610b4d565b91506102a3856105a7565b6102ad9082610b4d565b90505b604051630852cd8d60e31b8152600481018390527f000000000000000000000000c0d4ceb216b3ba9c3701b291766fdcba977cec3a6001600160a01b0316906342966c6890602401600060405180830381600087803b15801561031257600080fd5b505af1158015610326573d6000803e3d6000fd5b5050505061033581858561062b565b50505050505050565b600060405163095ea7b360e01b81526001600160a01b03841660048201528260248201526000806044836000895af191505061037981610750565b6103bb5760405162461bcd60e51b815260206004820152600e60248201526d1054141493d59157d1905253115160921b60448201526064015b60405180910390fd5b50505050565b60006103f86001600160a01b037f0000000000000000000000004b16d95ddf1ae4fe8227ed7b7e80cf13275e61c916333085610797565b604051634a97344b60e01b8152600481018390527f0000000000000000000000004b16d95ddf1ae4fe8227ed7b7e80cf13275e61c96001600160a01b031690634a97344b906024016020604051808303816000875af115801561045f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104839190610b73565b92915050565b60006104c06001600160a01b037f000000000000000000000000cc94faf235cc5d3bf4bed3a30db5984306c86abc163330856107f1565b6040516327afaa2360e21b815260048101839052600060248201527f000000000000000000000000bde4dfb0dbb0dd8833efb6c5bd0ce048c852c4876001600160a01b031690639ebea88c90604401600060405180830381600087803b15801561052957600080fd5b505af115801561053d573d6000803e3d6000fd5b505060405163f968345360e01b8152600481018590527f0000000000000000000000004b16d95ddf1ae4fe8227ed7b7e80cf13275e61c96001600160a01b0316925063f968345391506024015b602060405180830381865afa15801561045f573d6000803e3d6000fd5b60006105de6001600160a01b037f000000000000000000000000c0d4ceb216b3ba9c3701b291766fdcba977cec3a16333085610797565b60405163f968345360e01b8152600481018390527f0000000000000000000000004b16d95ddf1ae4fe8227ed7b7e80cf13275e61c96001600160a01b03169063f96834539060240161058a565b7f000000000000000000000000ca0f30b51963c4532d95016098d74f0df9e4518b6001600160a01b031663da1919b3826106655783610667565b305b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101869052604401600060405180830381600087803b1580156106af57600080fd5b505af11580156106c3573d6000803e3d6000fd5b50505050801561074b5760405163282d3fdf60e01b81526001600160a01b038381166004830152602482018590527f000000000000000000000000742b70151cd3bc7ab598aaff1d54b90c3ebc6027169063282d3fdf90604401600060405180830381600087803b15801561073757600080fd5b505af1158015610335573d6000803e3d6000fd5b505050565b60003d8261076257806000803e806000fd5b806020811461077a57801561078b5760009250610790565b816000803e60005115159250610790565b600192505b5050919050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526103bb908590610885565b60006040516323b872dd60e01b81526001600160a01b03851660048201526001600160a01b038416602482015282604482015260008060648360008a5af191505061083b81610750565b61087e5760405162461bcd60e51b81526020600482015260146024820152731514905394d1915497d19493d357d1905253115160621b60448201526064016103b2565b5050505050565b60006108da826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109579092919063ffffffff16565b80519091501561074b57808060200190518101906108f89190610b8c565b61074b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103b2565b60606109668484600085610970565b90505b9392505050565b6060824710156109d15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103b2565b6001600160a01b0385163b610a285760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103b2565b600080866001600160a01b03168587604051610a449190610bd5565b60006040518083038185875af1925050503d8060008114610a81576040519150601f19603f3d011682016040523d82523d6000602084013e610a86565b606091505b5091509150610a96828286610aa1565b979650505050505050565b60608315610ab0575081610969565b825115610ac05782518084602001fd5b8160405162461bcd60e51b81526004016103b29190610bf1565b8015158114610ae857600080fd5b50565b600080600080600060a08688031215610b0357600080fd5b85359450602086013593506040860135925060608601356001600160a01b0381168114610b2f57600080fd5b91506080860135610b3f81610ada565b809150509295509295909350565b60008219821115610b6e57634e487b7160e01b600052601160045260246000fd5b500190565b600060208284031215610b8557600080fd5b5051919050565b600060208284031215610b9e57600080fd5b815161096981610ada565b60005b83811015610bc4578181015183820152602001610bac565b838111156103bb5750506000910152565b60008251610be7818460208701610ba9565b9190910192915050565b6020815260008251806020840152610c10816040850160208701610ba9565b601f01601f1916919091016040019291505056fea264697066735822122058c0525b03f0949eb8b18b3e63951f7441188186a4033e1f91463e603d45807a64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004b16d95ddf1ae4fe8227ed7b7e80cf13275e61c9000000000000000000000000cc94faf235cc5d3bf4bed3a30db5984306c86abc000000000000000000000000c55126051b22ebb829d00368f4b12bde432de5da000000000000000000000000c0d4ceb216b3ba9c3701b291766fdcba977cec3a000000000000000000000000ca0f30b51963c4532d95016098d74f0df9e4518b000000000000000000000000bde4dfb0dbb0dd8833efb6c5bd0ce048c852c487000000000000000000000000742b70151cd3bc7ab598aaff1d54b90c3ebc6027
-----Decoded View---------------
Arg [0] : wxBtrfly_ (address): 0x4B16d95dDF1AE4Fe8227ed7B7E80CF13275e61c9
Arg [1] : xBtrfly_ (address): 0xCC94Faf235cC5D3Bf4bEd3a30db5984306c86aBC
Arg [2] : btrflyV2_ (address): 0xc55126051B22eBb829D00368f4B12Bde432de5Da
Arg [3] : btrfly_ (address): 0xC0d4Ceb216B3BA9C3701B291766fDCbA977ceC3A
Arg [4] : mariposa_ (address): 0xCA0f30b51963C4532d95016098d74f0dF9e4518B
Arg [5] : staking_ (address): 0xBdE4Dfb0dbb0Dd8833eFb6C5BD0Ce048C852C487
Arg [6] : rlBtrfly_ (address): 0x742B70151cd3Bc7ab598aAFF1d54B90c3ebC6027
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000004b16d95ddf1ae4fe8227ed7b7e80cf13275e61c9
Arg [1] : 000000000000000000000000cc94faf235cc5d3bf4bed3a30db5984306c86abc
Arg [2] : 000000000000000000000000c55126051b22ebb829d00368f4b12bde432de5da
Arg [3] : 000000000000000000000000c0d4ceb216b3ba9c3701b291766fdcba977cec3a
Arg [4] : 000000000000000000000000ca0f30b51963c4532d95016098d74f0df9e4518b
Arg [5] : 000000000000000000000000bde4dfb0dbb0dd8833efb6c5bd0ce048c852c487
Arg [6] : 000000000000000000000000742b70151cd3bc7ab598aaff1d54b90c3ebc6027
Deployed Bytecode Sourcemap
45289:5391:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49212:858;;;;;;:::i;:::-;;:::i;:::-;;45626:33;;;;;;;;-1:-1:-1;;;;;950:32:1;;;932:51;;920:2;905:18;45626:33:0;;;;;;;45508:31;;;;;45546;;;;;45429:35;;;;;45584;;;;;45471:30;;;;;45666:34;;;;;49212:858;-1:-1:-1;;;;;49388:23:0;;49384:49;;49420:13;;-1:-1:-1;;;49420:13:0;;;;;;;;;;;49384:49;49451:65;;;2318:25:1;;;2374:2;2359:18;;2352:34;;;2402:18;;;2395:34;;;49505:10:0;;49451:65;;;;-1:-1:-1;;;;;49451:65:0;;;;;2306:2:1;2291:18;49451:65:0;;;;;;;49529:18;;49593:13;;49589:121;;49636:26;49653:8;49636:16;:26::i;:::-;49623:39;;49690:8;49677:21;;49589:121;49726:12;;49722:119;;49755:21;49769:7;49755:21;;:::i;:::-;;;49805:24;49821:7;49805:15;:24::i;:::-;49791:38;;;;:::i;:::-;;;49722:119;49857:13;;49853:121;;49887:22;49901:8;49887:22;;:::i;:::-;;;49938:24;49953:8;49938:14;:24::i;:::-;49924:38;;;;:::i;:::-;;;49853:121;49986:23;;-1:-1:-1;;;49986:23:0;;;;;2816:25:1;;;49986:6:0;-1:-1:-1;;;;;49986:11:0;;;;2789:18:1;;49986:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50020:42;50034:10;50046:9;50057:4;50020:13;:42::i;:::-;49373:697;;49212:858;;;;;:::o;10397:1063::-;10513:15;10647:4;10641:11;-1:-1:-1;;;10748:17:0;10741:93;-1:-1:-1;;;;;10923:2:0;10919:51;10915:1;10896:17;10892:25;10885:86;11058:6;11053:2;11034:17;11030:26;11023:42;11356:1;11353;11349:2;11330:17;11327:1;11320:5;11313;11308:50;11294:64;;;11389:44;11422:10;11389:32;:44::i;:::-;11381:71;;;;-1:-1:-1;;;11381:71:0;;3054:2:1;11381:71:0;;;3036:21:1;3093:2;3073:18;;;3066:30;-1:-1:-1;;;3112:18:1;;;3105:44;3166:18;;11381:71:0;;;;;;;;;10502:958;10397:1063;;;:::o;47616:257::-;47676:7;47754:60;-1:-1:-1;;;;;47754:8:0;:25;47780:10;47800:4;47807:6;47754:25;:60::i;:::-;47834:31;;-1:-1:-1;;;47834:31:0;;;;;2816:25:1;;;47834:8:0;-1:-1:-1;;;;;47834:23:0;;;;2789:18:1;;47834:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;47827:38;47616:257;-1:-1:-1;;47616:257:0:o;48088:298::-;48165:18;48229:59;-1:-1:-1;;;;;48229:7:0;:24;48254:10;48274:4;48281:6;48229:24;:59::i;:::-;48299:30;;-1:-1:-1;;;48299:30:0;;;;;3552:25:1;;;48323:5:0;3593:18:1;;;3586:50;48299:7:0;-1:-1:-1;;;;;48299:15:0;;;;3525:18:1;;48299:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;48349:29:0;;-1:-1:-1;;;48349:29:0;;;;;2816:25:1;;;48349:8:0;-1:-1:-1;;;;;48349:21:0;;-1:-1:-1;48349:21:0;;-1:-1:-1;2789:18:1;;48349:29:0;;;;;;;;;;;;;;;;;;;;;;;48599:227;48675:18;48711:58;-1:-1:-1;;;;;48711:6:0;:23;48735:10;48755:4;48762:6;48711:23;:58::i;:::-;48789:29;;-1:-1:-1;;;48789:29:0;;;;;2816:25:1;;;48789:8:0;-1:-1:-1;;;;;48789:21:0;;;;2789:18:1;;48789:29:0;2670:177:1;50339:338:0;50556:8;-1:-1:-1;;;;;50556:16:0;;50573:4;:32;;50596:9;50573:32;;;50588:4;50573:32;50556:58;;-1:-1:-1;;;;;;50556:58:0;;;;;;;-1:-1:-1;;;;;3839:32:1;;;50556:58:0;;;3821:51:1;3888:18;;;3881:34;;;3794:18;;50556:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50631:4;50627:42;;;50637:32;;-1:-1:-1;;;50637:32:0;;-1:-1:-1;;;;;3839:32:1;;;50637::0;;;3821:51:1;3888:18;;;3881:34;;;50637:8:0;:13;;;;3794:18:1;;50637:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50627:42;50339:338;;;:::o;11659:1072::-;11740:12;11865:16;11945:10;11935:244;;12054:14;12051:1;12048;12033:36;12149:14;12146:1;12139:25;11935:244;12202:14;12235:2;12230:248;;;;12492:99;;;;12697:1;12686:12;;12195:518;;12230:248;12332:14;12329:1;12326;12311:36;12459:1;12453:8;12446:16;12439:24;12428:35;;12230:248;;12492:99;12575:1;12564:12;;12195:518;;;11659:1072;;;:::o;24998:248::-;25169:68;;;-1:-1:-1;;;;;4184:15:1;;;25169:68:0;;;4166:34:1;4236:15;;4216:18;;;4209:43;4268:18;;;;4261:34;;;25169:68:0;;;;;;;;;;4101:18:1;;;;25169:68:0;;;;;;;;-1:-1:-1;;;;;25169:68:0;-1:-1:-1;;;25169:68:0;;;25142:96;;25162:5;;25142:19;:96::i;8074:1242::-;8218:15;8352:4;8346:11;-1:-1:-1;;;8453:17:0;8446:93;-1:-1:-1;;;;;8628:4:0;8624:53;8620:1;8601:17;8597:25;8590:88;-1:-1:-1;;;;;8771:2:0;8767:51;8762:2;8743:17;8739:26;8732:87;8906:6;8901:2;8882:17;8878:26;8871:42;9206:1;9203;9198:3;9179:17;9176:1;9169:5;9162;9157:51;9143:65;;;9239:44;9272:10;9239:32;:44::i;:::-;9231:77;;;;-1:-1:-1;;;9231:77:0;;4508:2:1;9231:77:0;;;4490:21:1;4547:2;4527:18;;;4520:30;-1:-1:-1;;;4566:18:1;;;4559:50;4626:18;;9231:77:0;4306:344:1;9231:77:0;8207:1109;8074:1242;;;;:::o;27352:716::-;27776:23;27802:69;27830:4;27802:69;;;;;;;;;;;;;;;;;27810:5;-1:-1:-1;;;;;27802:27:0;;;:69;;;;;:::i;:::-;27886:17;;27776:95;;-1:-1:-1;27886:21:0;27882:179;;27983:10;27972:30;;;;;;;;;;;;:::i;:::-;27964:85;;;;-1:-1:-1;;;27964:85:0;;5107:2:1;27964:85:0;;;5089:21:1;5146:2;5126:18;;;5119:30;5185:34;5165:18;;;5158:62;-1:-1:-1;;;5236:18:1;;;5229:40;5286:19;;27964:85:0;4905:406:1;19571:229:0;19708:12;19740:52;19762:6;19770:4;19776:1;19779:12;19740:21;:52::i;:::-;19733:59;;19571:229;;;;;;:::o;20691:510::-;20861:12;20919:5;20894:21;:30;;20886:81;;;;-1:-1:-1;;;20886:81:0;;5518:2:1;20886:81:0;;;5500:21:1;5557:2;5537:18;;;5530:30;5596:34;5576:18;;;5569:62;-1:-1:-1;;;5647:18:1;;;5640:36;5693:19;;20886:81:0;5316:402:1;20886:81:0;-1:-1:-1;;;;;17121:19:0;;;20978:60;;;;-1:-1:-1;;;20978:60:0;;5925:2:1;20978:60:0;;;5907:21:1;5964:2;5944:18;;;5937:30;6003:31;5983:18;;;5976:59;6052:18;;20978:60:0;5723:353:1;20978:60:0;21052:12;21066:23;21093:6;-1:-1:-1;;;;;21093:11:0;21112:5;21119:4;21093:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21051:73;;;;21142:51;21159:7;21168:10;21180:12;21142:16;:51::i;:::-;21135:58;20691:510;-1:-1:-1;;;;;;;20691:510:0:o;23377:712::-;23527:12;23556:7;23552:530;;;-1:-1:-1;23587:10:0;23580:17;;23552:530;23701:17;;:21;23697:374;;23899:10;23893:17;23960:15;23947:10;23943:2;23939:19;23932:44;23697:374;24042:12;24035:20;;-1:-1:-1;;;24035:20:0;;;;;;;;:::i;14:118:1:-;100:5;93:13;86:21;79:5;76:32;66:60;;122:1;119;112:12;66:60;14:118;:::o;137:627::-;229:6;237;245;253;261;314:3;302:9;293:7;289:23;285:33;282:53;;;331:1;328;321:12;282:53;354:23;;;-1:-1:-1;424:2:1;409:18;;396:32;;-1:-1:-1;475:2:1;460:18;;447:32;;-1:-1:-1;529:2:1;514:18;;501:32;-1:-1:-1;;;;;562:31:1;;552:42;;542:70;;608:1;605;598:12;542:70;631:5;-1:-1:-1;688:3:1;673:19;;660:33;702:30;660:33;702:30;:::i;:::-;751:7;741:17;;;137:627;;;;;;;;:::o;2440:225::-;2480:3;2511:1;2507:6;2504:1;2501:13;2498:136;;;2556:10;2551:3;2547:20;2544:1;2537:31;2591:4;2588:1;2581:15;2619:4;2616:1;2609:15;2498:136;-1:-1:-1;2650:9:1;;2440:225::o;3195:184::-;3265:6;3318:2;3306:9;3297:7;3293:23;3289:32;3286:52;;;3334:1;3331;3324:12;3286:52;-1:-1:-1;3357:16:1;;3195:184;-1:-1:-1;3195:184:1:o;4655:245::-;4722:6;4775:2;4763:9;4754:7;4750:23;4746:32;4743:52;;;4791:1;4788;4781:12;4743:52;4823:9;4817:16;4842:28;4864:5;4842:28;:::i;6081:258::-;6153:1;6163:113;6177:6;6174:1;6171:13;6163:113;;;6253:11;;;6247:18;6234:11;;;6227:39;6199:2;6192:10;6163:113;;;6294:6;6291:1;6288:13;6285:48;;;-1:-1:-1;;6329:1:1;6311:16;;6304:27;6081:258::o;6344:274::-;6473:3;6511:6;6505:13;6527:53;6573:6;6568:3;6561:4;6553:6;6549:17;6527:53;:::i;:::-;6596:16;;;;;6344:274;-1:-1:-1;;6344:274:1:o;6623:383::-;6772:2;6761:9;6754:21;6735:4;6804:6;6798:13;6847:6;6842:2;6831:9;6827:18;6820:34;6863:66;6922:6;6917:2;6906:9;6902:18;6897:2;6889:6;6885:15;6863:66;:::i;:::-;6990:2;6969:15;-1:-1:-1;;6965:29:1;6950:45;;;;6997:2;6946:54;;6623:383;-1:-1:-1;;6623:383:1:o
Swarm Source
ipfs://58c0525b03f0949eb8b18b3e63951f7441188186a4033e1f91463e603d45807a
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.