Overview
APE Balance
0 APE
APE Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
ERC20Module
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../interfaces/core/IModule.sol"; import "../helpers/Utils.sol"; import { AddressProvider } from "../main/AddressProvider.sol"; import "../interfaces/main/ICyanVaultV2.sol"; /// @title Cyan Wallet ERC20 Module - A Cyan wallet's ERC20 token handling module. /// @author Bulgantamir Gankhuyag - <[email protected]> /// @author Naranbayar Uuganbayar - <[email protected]> contract ERC20Module is IModule { AddressProvider private constant addressProvider = AddressProvider(0xCF9A19D879769aDaE5e4f31503AAECDa82568E55); // keccak256("wallet.ERC20Module.lockedERC20") bytes32 private constant LOCKER_SLOT = 0x7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e; bytes4 private constant ERC20_TRANSFER = IERC20.transfer.selector; bytes4 private constant ERC20_APPROVE = IERC20.approve.selector; bytes4 private constant ERC20_INCREASE_ALLOWANCE = bytes4(keccak256("increaseAllowance(address,uint256)")); bytes4 private constant ERC20_DECREASE_ALLOWANCE = bytes4(keccak256("decreaseAllowance(address,uint256)")); event SetLockedERC20Token(address collection, uint256 amount); /// @notice Locks ERC20 tokens. /// @param collection Token address. /// @param amount Token amount to be locked. function setLockedERC20Token(address collection, uint256 amount) external { uint256 balance = IERC20(collection).balanceOf(address(this)); uint256 lockedAmount = getLockedAmount(collection); require(lockedAmount + amount <= balance, "Cannot perform this action on locked token."); _getLockedTokens()[collection] = amount; emit SetLockedERC20Token(collection, amount); } /// @inheritdoc IModule function handleTransaction( address to, uint256 value, bytes calldata data ) external payable override returns (bytes memory) { bytes4 funcHash = Utils.parseFunctionSelector(data); if ( funcHash == ERC20_TRANSFER || funcHash == ERC20_APPROVE || funcHash == ERC20_INCREASE_ALLOWANCE || funcHash == ERC20_DECREASE_ALLOWANCE ) { uint256 amount = Utils.getUint256At(data, 0x24); require(_isAvailable(to, amount), "Cannot perform this action on locked token or balance not enough."); } return Utils._execute(to, value, data); } /// @notice Allows operators to get the defaulted tokens. /// Note: Can only transfer if token is locked. /// @param collection Collection address. /// @param amount Amount. /// @param to Receiver address. function transferDefaultedERC20( address collection, uint256 amount, address to ) external returns (bytes memory) { require(_getLockedTokens()[collection] >= amount, "Cannot perform this action on non-locked token."); _getLockedTokens()[collection] -= amount; bytes memory data = abi.encodeWithSelector(ERC20_TRANSFER, to, amount); return Utils._execute(collection, 0, data); } /// @notice Returns locked amount of the collection. /// @param collection Collection address. /// @return amount Locked amount. function getLockedAmount(address collection) public view returns (uint256) { return _getLockedTokens()[collection]; } /// @dev Returns the map of the locked tokens. /// @return result Map of the locked tokens. /// Note: Collection address => Locked amount function _getLockedTokens() internal pure returns (mapping(address => uint256) storage result) { assembly { result.slot := LOCKER_SLOT } } /// @dev Checks the amount of non-locked tokens available in the wallet. /// @param collection Address of the collection. /// @param amount Requesting amount. /// @return Boolean to give truthy if requested amount of non-locked tokens are available. function _isAvailable(address collection, uint256 amount) internal view returns (bool) { address vaultAddress = addressProvider.addresses(bytes32(uint256(uint160(collection)))); if (vaultAddress != address(0)) { // ERC20 token is Cyan Vault Token return ICyanVaultV2(vaultAddress).withdrawLocked(address(this)) <= block.timestamp; } uint256 balance = IERC20(collection).balanceOf(address(this)); uint256 lockedAmount = getLockedAmount(collection); return lockedAmount + amount <= balance; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; library Utils { /// @notice Executes a transaction to the given address. /// @param to Target address. /// @param value Native token value to be sent to the address. /// @param data Data to be sent to the address. /// @return result Result of the transaciton. function _execute( address to, uint256 value, bytes memory data ) internal returns (bytes memory result) { assembly { let success := call(gas(), to, value, add(data, 0x20), mload(data), 0, 0) mstore(result, returndatasize()) returndatacopy(add(result, 0x20), 0, returndatasize()) if eq(success, 0) { revert(add(result, 0x20), returndatasize()) } } } /// @notice Recover signer address from signature. /// @param signedHash Arbitrary length data signed on the behalf of the wallet. /// @param signature Signature byte array associated with signedHash. /// @return Recovered signer address. function recoverSigner(bytes32 signedHash, bytes memory signature) internal pure returns (address) { uint8 v; bytes32 r; bytes32 s; // we jump 32 (0x20) as the first slot of bytes contains the length // we jump 65 (0x41) per signature // for v we load 32 bytes ending with v (the first 31 come from s) then apply a mask assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } require(v == 27 || v == 28, "Bad v value in signature."); address recoveredAddress = ecrecover(signedHash, v, r, s); require(recoveredAddress != address(0), "ecrecover returned 0."); return recoveredAddress; } /// @notice Helper method to parse the function selector from data. /// @param data Any data to be parsed, mostly calldata of transaction. /// @return result Parsed function sighash. function parseFunctionSelector(bytes memory data) internal pure returns (bytes4 result) { require(data.length >= 4, "Invalid data."); assembly { result := mload(add(data, 0x20)) } } /// @notice Parse uint256 from given data. /// @param data Any data to be parsed, mostly calldata of transaction. /// @param position Position in the data. /// @return result Uint256 parsed from given data. function getUint256At(bytes memory data, uint8 position) internal pure returns (uint256 result) { assembly { result := mload(add(data, add(position, 0x20))) } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface IModule { /// @notice Executes given transaction data to given address. /// @param to Target contract address. /// @param value Value of the given transaction. /// @param data Calldata of the transaction. /// @return Result of the execution. function handleTransaction( address to, uint256 value, bytes calldata data ) external payable returns (bytes memory); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface ICyanVaultV2 { function getCurrencyAddress() external view returns (address); function lend(address to, uint256 amount) external; function earn(uint256 amount, uint256 profit) external payable; function nftDefaulted(uint256 unpaidAmount, uint256 estimatedPriceOfNFT) external; function withdrawLocked(address cyanWalletAddress) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; /// @title Cyan AddressProvider contract /// @author Bulgantamir Gankhuyag - <[email protected]> /// @author Naranbayar Uuganbayar - <[email protected]> contract AddressProvider is Ownable { error AddressNotFound(bytes32 id); event AddressSet(bytes32 id, address newAddress); mapping(bytes32 => address) public addresses; constructor(address owner) { transferOwnership(owner); } // @dev Sets an address for an id replacing the address saved in the addresses map // @param id The id // @param newAddress The address to set function setAddress(bytes32 id, address newAddress) external onlyOwner { addresses[id] = newAddress; emit AddressSet(id, newAddress); } }
{ "optimizer": { "enabled": true, "runs": 500 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SetLockedERC20Token","type":"event"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"getLockedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"handleTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setLockedERC20Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"transferDefaultedERC20","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50610a5b806100206000396000f3fe60806040526004361061003f5760003560e01c806324130dc814610044578063929ec5371461007a578063ab6a377b146100dd578063c909393b146100f0575b600080fd5b34801561005057600080fd5b5061006461005f36600461084a565b610112565b604051610071919061088c565b60405180910390f35b34801561008657600080fd5b506100cf6100953660046108da565b6001600160a01b031660009081527f7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e602052604090205490565b604051908152602001610071565b6100646100eb3660046108fe565b610284565b3480156100fc57600080fd5b5061011061010b366004610987565b61044c565b005b6001600160a01b03831660009081527f7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e60205260409020546060908311156101c75760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420706572666f726d207468697320616374696f6e206f6e206e6f60448201527f6e2d6c6f636b656420746f6b656e2e000000000000000000000000000000000060648201526084015b60405180910390fd5b6001600160a01b03841660009081527f7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e60205260408120805485929061020e9084906109c9565b9091555050604080516001600160a01b038416602482015260448082018690528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b17905261027b856000836105e2565b95945050505050565b606060006102c784848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061061092505050565b90506001600160e01b0319811663a9059cbb60e01b14806102f857506001600160e01b0319811663095ea7b360e01b145b8061031357506001600160e01b03198116633950935160e01b145b8061032e57506001600160e01b0319811663a457c2d760e01b145b1561040157600061037785858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506024925061065c915050565b90506103838782610664565b6103ff5760405162461bcd60e51b815260206004820152604160248201527f43616e6e6f7420706572666f726d207468697320616374696f6e206f6e206c6f60448201527f636b656420746f6b656e206f722062616c616e6365206e6f7420656e6f7567686064820152601760f91b608482015260a4016101be565b505b610442868686868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506105e292505050565b9695505050505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b791906109dc565b905060006104f9846001600160a01b031660009081527f7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e602052604090205490565b90508161050684836109f5565b11156105685760405162461bcd60e51b815260206004820152602b60248201527f43616e6e6f7420706572666f726d207468697320616374696f6e206f6e206c6f60448201526a31b5b2b2103a37b5b2b71760a91b60648201526084016101be565b6001600160a01b03841660008181527f7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e60209081526040918290208690558151928352820185905280517f717e8316bed0eb729192f9b3d37557aba8d4f2dc0a7953300652f32732eeae429281900390910190a150505050565b606060008083516020850186885af13d82523d6000602084013e80610608573d60208301fd5b509392505050565b60006004825110156106545760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103230ba309760991b60448201526064016101be565b506020015190565b016020015190565b60405163699f200f60e01b81526001600160a01b0383166004820152600090819073cf9a19d879769adae5e4f31503aaecda82568e559063699f200f90602401602060405180830381865afa1580156106c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e59190610a08565b90506001600160a01b0381161561076a57604051637ac0d15560e01b815230600482015242906001600160a01b03831690637ac0d15590602401602060405180830381865afa15801561073c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076091906109dc565b111591505061082c565b6040516370a0823160e01b81523060048201526000906001600160a01b038616906370a0823190602401602060405180830381865afa1580156107b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d591906109dc565b90506000610817866001600160a01b031660009081527f7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e602052604090205490565b90508161082486836109f5565b111593505050505b92915050565b6001600160a01b038116811461084757600080fd5b50565b60008060006060848603121561085f57600080fd5b833561086a81610832565b925060208401359150604084013561088181610832565b809150509250925092565b600060208083528351808285015260005b818110156108b95785810183015185820160400152820161089d565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156108ec57600080fd5b81356108f781610832565b9392505050565b6000806000806060858703121561091457600080fd5b843561091f81610832565b935060208501359250604085013567ffffffffffffffff8082111561094357600080fd5b818701915087601f83011261095757600080fd5b81358181111561096657600080fd5b88602082850101111561097857600080fd5b95989497505060200194505050565b6000806040838503121561099a57600080fd5b82356109a581610832565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561082c5761082c6109b3565b6000602082840312156109ee57600080fd5b5051919050565b8082018082111561082c5761082c6109b3565b600060208284031215610a1a57600080fd5b81516108f78161083256fea2646970667358221220599d88c1e1e360c6bbe20e81e2f524f60399cc89562bec9572eb6b7fe6c78b6864736f6c63430008130033
Deployed Bytecode
0x60806040526004361061003f5760003560e01c806324130dc814610044578063929ec5371461007a578063ab6a377b146100dd578063c909393b146100f0575b600080fd5b34801561005057600080fd5b5061006461005f36600461084a565b610112565b604051610071919061088c565b60405180910390f35b34801561008657600080fd5b506100cf6100953660046108da565b6001600160a01b031660009081527f7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e602052604090205490565b604051908152602001610071565b6100646100eb3660046108fe565b610284565b3480156100fc57600080fd5b5061011061010b366004610987565b61044c565b005b6001600160a01b03831660009081527f7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e60205260409020546060908311156101c75760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420706572666f726d207468697320616374696f6e206f6e206e6f60448201527f6e2d6c6f636b656420746f6b656e2e000000000000000000000000000000000060648201526084015b60405180910390fd5b6001600160a01b03841660009081527f7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e60205260408120805485929061020e9084906109c9565b9091555050604080516001600160a01b038416602482015260448082018690528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b17905261027b856000836105e2565b95945050505050565b606060006102c784848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061061092505050565b90506001600160e01b0319811663a9059cbb60e01b14806102f857506001600160e01b0319811663095ea7b360e01b145b8061031357506001600160e01b03198116633950935160e01b145b8061032e57506001600160e01b0319811663a457c2d760e01b145b1561040157600061037785858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506024925061065c915050565b90506103838782610664565b6103ff5760405162461bcd60e51b815260206004820152604160248201527f43616e6e6f7420706572666f726d207468697320616374696f6e206f6e206c6f60448201527f636b656420746f6b656e206f722062616c616e6365206e6f7420656e6f7567686064820152601760f91b608482015260a4016101be565b505b610442868686868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506105e292505050565b9695505050505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b791906109dc565b905060006104f9846001600160a01b031660009081527f7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e602052604090205490565b90508161050684836109f5565b11156105685760405162461bcd60e51b815260206004820152602b60248201527f43616e6e6f7420706572666f726d207468697320616374696f6e206f6e206c6f60448201526a31b5b2b2103a37b5b2b71760a91b60648201526084016101be565b6001600160a01b03841660008181527f7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e60209081526040918290208690558151928352820185905280517f717e8316bed0eb729192f9b3d37557aba8d4f2dc0a7953300652f32732eeae429281900390910190a150505050565b606060008083516020850186885af13d82523d6000602084013e80610608573d60208301fd5b509392505050565b60006004825110156106545760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103230ba309760991b60448201526064016101be565b506020015190565b016020015190565b60405163699f200f60e01b81526001600160a01b0383166004820152600090819073cf9a19d879769adae5e4f31503aaecda82568e559063699f200f90602401602060405180830381865afa1580156106c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e59190610a08565b90506001600160a01b0381161561076a57604051637ac0d15560e01b815230600482015242906001600160a01b03831690637ac0d15590602401602060405180830381865afa15801561073c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076091906109dc565b111591505061082c565b6040516370a0823160e01b81523060048201526000906001600160a01b038616906370a0823190602401602060405180830381865afa1580156107b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d591906109dc565b90506000610817866001600160a01b031660009081527f7f4f1b59be841ba41f04a1366e54ff13c51165e7bf98fa5b51c1abe9f816a09e602052604090205490565b90508161082486836109f5565b111593505050505b92915050565b6001600160a01b038116811461084757600080fd5b50565b60008060006060848603121561085f57600080fd5b833561086a81610832565b925060208401359150604084013561088181610832565b809150509250925092565b600060208083528351808285015260005b818110156108b95785810183015185820160400152820161089d565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156108ec57600080fd5b81356108f781610832565b9392505050565b6000806000806060858703121561091457600080fd5b843561091f81610832565b935060208501359250604085013567ffffffffffffffff8082111561094357600080fd5b818701915087601f83011261095757600080fd5b81358181111561096657600080fd5b88602082850101111561097857600080fd5b95989497505060200194505050565b6000806040838503121561099a57600080fd5b82356109a581610832565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561082c5761082c6109b3565b6000602082840312156109ee57600080fd5b5051919050565b8082018082111561082c5761082c6109b3565b600060208284031215610a1a57600080fd5b81516108f78161083256fea2646970667358221220599d88c1e1e360c6bbe20e81e2f524f60399cc89562bec9572eb6b7fe6c78b6864736f6c63430008130033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
BLAST | 100.00% | $3,159.35 | 0.00051687 | $1.63 |
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.