Sonic Blaze Testnet
    /

    Contract

    0x2BBDa2fCCDB31056d5bc23a874c59B669459CDa1

    Overview

    S Balance

    Sonic Blaze LogoSonic Blaze LogoSonic Blaze Logo0 S

    Token Holdings

    Multichain Info

    No addresses found
    Transaction Hash
    Method
    Block
    Age
    From
    To
    Initialize259497682025-03-12 13:34:264 days ago1741786466IN
    0x2BBDa2fC...69459CDa1
    0 S0.000054871.1

    Parent Transaction Hash Block Age From To Amount
    View All Internal Transactions
    Loading...
    Loading

    Similar Match Source Code
    This contract matches the deployed Bytecode of the Source Code for Contract 0xEE28A2Ca...EFA5c565F
    The constructor portion of the code might be different and could alter the actual behaviour of the contract

    Contract Name:
    SnowyDaoFund

    Compiler Version
    v0.8.4+commit.c7e474f2

    Optimization Enabled:
    Yes with 200 runs

    Other Settings:
    default evmVersion

    Contract Source Code (Solidity Standard Json-Input format)

    File 1 of 8 : SnowyDaoFund.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    // SPDX-License-Identifier: MIT
    pragma solidity 0.8.4;
    import "./Fund.sol";
    contract SnowyDaoFund is Fund {
    uint256 public constant ALLOCATION = 6_000_000 ether; // 20%
    uint256 public constant VESTING_DURATION = 3 * 365 * 24 * 3600; // 3 years
    uint256 public constant VESTING_START = 1648130400; // 24th Mar 2022, 2PM UTC
    /*===================== VIEWS =====================*/
    function allocation() public pure override returns (uint256) {
    return ALLOCATION;
    }
    function vestingStart() public pure override returns (uint256) {
    return VESTING_START;
    }
    function vestingDuration() public pure override returns (uint256) {
    return VESTING_DURATION;
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 2 of 8 : Ownable.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts v4.4.1 (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.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 3 of 8 : Initializable.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)
    pragma solidity ^0.8.0;
    import "../../utils/Address.sol";
    /**
    * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
    * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
    * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
    * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
    *
    * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
    * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
    *
    * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
    * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
    *
    * [CAUTION]
    * ====
    * Avoid leaving a contract uninitialized.
    *
    * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
    * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
    * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 4 of 8 : IERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
    pragma solidity ^0.8.0;
    /**
    * @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.
    */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 5 of 8 : SafeERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
    pragma solidity ^0.8.0;
    import "../IERC20.sol";
    import "../../../utils/Address.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));
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 6 of 8 : Address.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
    pragma solidity ^0.8.1;
    /**
    * @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
    * ====
    *
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 7 of 8 : Context.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    // 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;
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 8 of 8 : Fund.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity 0.8.4;
    import "@openzeppelin/contracts/access/Ownable.sol";
    import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
    import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
    import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
    abstract contract Fund is Ownable, Initializable {
    using SafeERC20 for IERC20;
    IERC20 public snowy;
    uint256 public claimedAmount;
    /*===================== CONSTRUCTOR =====================*/
    function initialize(address _snowy) external initializer {
    require(_snowy != address(0), "Fund::constructor: Invalid address");
    snowy = IERC20(_snowy);
    }
    /*===================== VIEWS =====================*/
    function allocation() public view virtual returns (uint256);
    function vestingStart() public view virtual returns (uint256);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Settings
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    {
    "optimizer": {
    "enabled": true,
    "runs": 200
    },
    "outputSelection": {
    "*": {
    "*": [
    "evm.bytecode",
    "evm.deployedBytecode",
    "devdoc",
    "userdoc",
    "metadata",
    "abi"
    ]
    }
    },
    "metadata": {
    "useLiteralContent": true
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Contract ABI

    API
    [{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VESTING_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VESTING_START","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_snowy","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snowy","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vestedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"vestingStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]

    Deployed Bytecode

    0x608060405234801561001057600080fd5b50600436106101005760003560e01c80638da5cb5b11610097578063c4d66de811610066578063c4d66de8146101cc578063ce845d1d146101df578063cfd11c4f146101e7578063f2fde38b146101f257600080fd5b80638da5cb5b146101975780639668ceb8146101a8578063a9059cbb146101b1578063af38d757146101c457600080fd5b80635599bd9a116100d35780635599bd9a1461013f578063715018a61461016a578063889646ea1461017457806388a17bde1461018657600080fd5b8063016a0a4d146101055780631514617e14610120578063254800d41461012a5780634cfc4d3014610134575b600080fd5b61010d610205565b6040519081526020015b60405180910390f35b6305a39a8061010d565b63623c796061010d565b61010d6305a39a8081565b600154610152906001600160a01b031681565b6040516001600160a01b039091168152602001610117565b61017261026e565b005b61010d6a04f68ca6d8cd91c600000081565b6a04f68ca6d8cd91c600000061010d565b6000546001600160a01b0316610152565b61010d60025481565b6101726101bf3660046109ad565b6102ad565b61010d610400565b6101726101da366004610993565b61041c565b61010d610564565b61010d63623c796081565b610172610200366004610993565b6105e0565b60006a04f68ca6d8cd91c600000063623c79606305a39a8042821061022e576000935050505090565b6102388183610a92565b42111561024757509092915050565b806102528342610ae9565b61025c9085610aca565b6102669190610aaa565b935050505090565b6000546001600160a01b031633146102a15760405162461bcd60e51b815260040161029890610a5d565b60405180910390fd5b6102ab600061067b565b565b6000546001600160a01b031633146102d75760405162461bcd60e51b815260040161029890610a5d565b6001600160a01b03821661032d5760405162461bcd60e51b815260206004820152601f60248201527f46756e643a3a7472616e736665723a20496e76616c69642061646472657373006044820152606401610298565b6000811161037d5760405162461bcd60e51b815260206004820152601e60248201527f46756e643a3a7472616e736665723a20496e76616c696420616d6f756e7400006044820152606401610298565b610385610400565b8111156103d45760405162461bcd60e51b815260206004820152601e60248201527f46756e643a3a7472616e736665723a203e20766573746564416d6f756e7400006044820152606401610298565b806002546103e29190610a92565b6002556001546103fc906001600160a01b031683836106cb565b5050565b600060025461040d610205565b6104179190610ae9565b905090565b600054600160a81b900460ff1661044057600054600160a01b900460ff1615610444565b303b155b6104a75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610298565b600054600160a81b900460ff161580156104d1576000805461ffff60a01b191661010160a01b1790555b6001600160a01b0382166105325760405162461bcd60e51b815260206004820152602260248201527f46756e643a3a636f6e7374727563746f723a20496e76616c6964206164647265604482015261737360f01b6064820152608401610298565b600180546001600160a01b0319166001600160a01b03841617905580156103fc576000805460ff60a81b191690555050565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156105a857600080fd5b505afa1580156105bc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041791906109f6565b6000546001600160a01b0316331461060a5760405162461bcd60e51b815260040161029890610a5d565b6001600160a01b03811661066f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610298565b6106788161067b565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261071d908490610722565b505050565b6000610777826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107f49092919063ffffffff16565b80519091501561071d578080602001905181019061079591906109d6565b61071d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610298565b6060610803848460008561080d565b90505b9392505050565b60608247101561086e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610298565b6001600160a01b0385163b6108c55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610298565b600080866001600160a01b031685876040516108e19190610a0e565b60006040518083038185875af1925050503d806000811461091e576040519150601f19603f3d011682016040523d82523d6000602084013e610923565b606091505b509150915061093382828661093e565b979650505050505050565b6060831561094d575081610806565b82511561095d5782518084602001fd5b8160405162461bcd60e51b81526004016102989190610a2a565b80356001600160a01b038116811461098e57600080fd5b919050565b6000602082840312156109a4578081fd5b61080682610977565b600080604083850312156109bf578081fd5b6109c883610977565b946020939093013593505050565b6000602082840312156109e7578081fd5b81518015158114610806578182fd5b600060208284031215610a07578081fd5b5051919050565b60008251610a20818460208701610b00565b9190910192915050565b6020815260008251806020840152610a49816040850160208701610b00565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610aa557610aa5610b30565b500190565b600082610ac557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610ae457610ae4610b30565b500290565b600082821015610afb57610afb610b30565b500390565b60005b83811015610b1b578181015183820152602001610b03565b83811115610b2a576000848401525b50505050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220dfa8022cb689c0716d5c6f90db77cbd0e5589bba53f606a5ad28caad8b1cf31c64736f6c63430008040033

    Block Age Transaction Gas Used Reward
    view all blocks ##produced##

    Block Age Uncle Number Difficulty Gas Used Reward
    View All Uncles
    Loading...
    Loading
    Loading...
    Loading

    Validator Index Block Age Amount
    View All Withdrawals

    Transaction Hash Block Age Value Eth2 PubKey Valid
    View All Deposits
    [ 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.