CELO Price: $0.12 (+1.00%)
Gas: 25 GWei

Contract

0x773B75CfB146bd5d1095fa9d6d45637f02B05119

Overview

CELO Balance

Celo Mainnet LogoCelo Mainnet LogoCelo Mainnet Logo0 CELO

CELO Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

Transaction Hash
Block
From
To
Withdraw268472002024-07-25 11:44:43548 days ago1721907883IN
0x773B75Cf...f02B05119
0 CELO0.0005827210
Deposit268471732024-07-25 11:42:28548 days ago1721907748IN
0x773B75Cf...f02B05119
0.00001 CELO0.0004342410

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
573606272026-01-24 13:29:4515 secs ago1769261385
0x773B75Cf...f02B05119
59.48557239 CELO
573589622026-01-24 13:02:0028 mins ago1769259720
0x773B75Cf...f02B05119
20.89417074 CELO
573589422026-01-24 13:01:4028 mins ago1769259700
0x773B75Cf...f02B05119
78.53488053 CELO
573589382026-01-24 13:01:3628 mins ago1769259696
0x773B75Cf...f02B05119
37.20082869 CELO
573589332026-01-24 13:01:3128 mins ago1769259691
0x773B75Cf...f02B05119
82.26990826 CELO
573589222026-01-24 13:01:2028 mins ago1769259680
0x773B75Cf...f02B05119
71.49013761 CELO
573589182026-01-24 13:01:1628 mins ago1769259676
0x773B75Cf...f02B05119
28.69310461 CELO
573583852026-01-24 12:52:2337 mins ago1769259143
0x773B75Cf...f02B05119
44.61342828 CELO
573583252026-01-24 12:51:2338 mins ago1769259083
0x773B75Cf...f02B05119
39.39412449 CELO
573583182026-01-24 12:51:1638 mins ago1769259076
0x773B75Cf...f02B05119
85.4535826 CELO
573583152026-01-24 12:51:1338 mins ago1769259073
0x773B75Cf...f02B05119
57.9978513 CELO
573583022026-01-24 12:51:0039 mins ago1769259060
0x773B75Cf...f02B05119
38.19407273 CELO
573582892026-01-24 12:50:4739 mins ago1769259047
0x773B75Cf...f02B05119
102.82523529 CELO
573581952026-01-24 12:49:1340 mins ago1769258953
0x773B75Cf...f02B05119
46.92548099 CELO
573581902026-01-24 12:49:0840 mins ago1769258948
0x773B75Cf...f02B05119
30.07867726 CELO
573581392026-01-24 12:48:1741 mins ago1769258897
0x773B75Cf...f02B05119
72.97486255 CELO
573581342026-01-24 12:48:1241 mins ago1769258892
0x773B75Cf...f02B05119
110.32691441 CELO
573581292026-01-24 12:48:0741 mins ago1769258887
0x773B75Cf...f02B05119
16.71632402 CELO
573580452026-01-24 12:46:4343 mins ago1769258803
0x773B75Cf...f02B05119
40.6315233 CELO
573580372026-01-24 12:46:3543 mins ago1769258795
0x773B75Cf...f02B05119
5.29815676 CELO
573580312026-01-24 12:46:2943 mins ago1769258789
0x773B75Cf...f02B05119
56.97077447 CELO
573580222026-01-24 12:46:2043 mins ago1769258780
0x773B75Cf...f02B05119
62.00161151 CELO
573580172026-01-24 12:46:1543 mins ago1769258775
0x773B75Cf...f02B05119
70.93161281 CELO
573580112026-01-24 12:46:0943 mins ago1769258769
0x773B75Cf...f02B05119
51.62595537 CELO
573580062026-01-24 12:46:0443 mins ago1769258764
0x773B75Cf...f02B05119
121.06771714 CELO
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WCELO

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT

pragma solidity 0.8.24;


/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Moves a `value` amount of 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);
}

/**
 * @notice custom-made Wrapped Celo (WCELO) contract which:
 * @notice receives native token on deposit and transfers Celo ERC-20 tokens
 * @notice on withdrawal, transfers the celo erc-20 tokens for native token
 */

contract WCELO {
    string public name     = "Wrapped Celo";
    string public symbol   = "WCELO";
    uint8  public decimals = 18;

    IERC20 public constant CELO_ERC_20 = IERC20(0x471EcE3750Da237f93B8E339c536989b8978a438);

    event Deposit(address indexed account, uint256 amount);

    event Withdrawal(address indexed account, uint256 amount);

    receive() external payable {
        deposit();
    }

    /**
     * @dev deposit native token and receive celo erc-20 tokens
     */
    function deposit() public payable {
        // transfer celo erc-20 tokens on deposit
        CELO_ERC_20.transfer(msg.sender, msg.value);
        emit Deposit(msg.sender, msg.value);
    }

    /**
     * @dev return celo erc-20 tokens and receive native token
     */
    function withdraw(uint wad) public {
        require(CELO_ERC_20.balanceOf(msg.sender) >= wad);
        // retrieve celo erc-20 tokens on withdrawal
        CELO_ERC_20.transferFrom(msg.sender, address(this), wad);
        payable(msg.sender).transfer(wad);
        emit Withdrawal(msg.sender, wad);
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": true
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"CELO_ERC_20","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052600c60809081526b577261707065642043656c6f60a01b60a05260009061002b9082610116565b506040805180820190915260058152645743454c4f60d81b60208201526001906100559082610116565b506002805460ff1916601217905534801561006f57600080fd5b506101d5565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061009f57607f821691505b6020821081036100bf57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610111576000816000526020600020601f850160051c810160208610156100ee5750805b601f850160051c820191505b8181101561010d578281556001016100fa565b5050505b505050565b81516001600160401b0381111561012f5761012f610075565b6101438161013d845461008b565b846100c5565b602080601f83116001811461017857600084156101605750858301515b600019600386901b1c1916600185901b17855561010d565b600085815260208120601f198616915b828110156101a757888601518255948401946001909101908401610188565b50858210156101c55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610584806101e46000396000f3fe6080604052600436106100695760003560e01c806352d11fc91161004357806352d11fc9146100f457806395d89b4114610141578063d0e30db01461015657600080fd5b806306fdde031461007d5780632e1a7d4d146100a8578063313ce567146100c857600080fd5b366100785761007661015a565b005b600080fd5b34801561008957600080fd5b50610092610226565b60405161009f919061045c565b60405180910390f35b3480156100b457600080fd5b506100766100c33660046104c9565b6102b4565b3480156100d457600080fd5b506002546100e29060ff1681565b60405160ff909116815260200161009f565b34801561010057600080fd5b5061011c73471ece3750da237f93b8e339c536989b8978a43881565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161009f565b34801561014d57600080fd5b5061009261044f565b6100765b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015234602482015273471ece3750da237f93b8e339c536989b8978a4389063a9059cbb906044016020604051808303816000875af11580156101ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ee91906104e2565b5060405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2565b600080546102339061050b565b80601f016020809104026020016040519081016040528092919081815260200182805461025f9061050b565b80156102ac5780601f10610281576101008083540402835291602001916102ac565b820191906000526020600020905b81548152906001019060200180831161028f57829003601f168201915b505050505081565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152336004820152819073471ece3750da237f93b8e339c536989b8978a438906370a0823190602401602060405180830381865afa15801561031e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610342919061055e565b101561034d57600080fd5b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810182905273471ece3750da237f93b8e339c536989b8978a438906323b872dd906064016020604051808303816000875af11580156103c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e891906104e2565b50604051339082156108fc029083906000818181858888f19350505050158015610416573d6000803e3d6000fd5b5060405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a250565b600180546102339061050b565b60006020808352835180602085015260005b8181101561048a5785810183015185820160400152820161046e565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6000602082840312156104db57600080fd5b5035919050565b6000602082840312156104f457600080fd5b8151801515811461050457600080fd5b9392505050565b600181811c9082168061051f57607f821691505b602082108103610558577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60006020828403121561057057600080fd5b505191905056fea164736f6c6343000818000a

Deployed Bytecode

0x6080604052600436106100695760003560e01c806352d11fc91161004357806352d11fc9146100f457806395d89b4114610141578063d0e30db01461015657600080fd5b806306fdde031461007d5780632e1a7d4d146100a8578063313ce567146100c857600080fd5b366100785761007661015a565b005b600080fd5b34801561008957600080fd5b50610092610226565b60405161009f919061045c565b60405180910390f35b3480156100b457600080fd5b506100766100c33660046104c9565b6102b4565b3480156100d457600080fd5b506002546100e29060ff1681565b60405160ff909116815260200161009f565b34801561010057600080fd5b5061011c73471ece3750da237f93b8e339c536989b8978a43881565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161009f565b34801561014d57600080fd5b5061009261044f565b6100765b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015234602482015273471ece3750da237f93b8e339c536989b8978a4389063a9059cbb906044016020604051808303816000875af11580156101ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ee91906104e2565b5060405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2565b600080546102339061050b565b80601f016020809104026020016040519081016040528092919081815260200182805461025f9061050b565b80156102ac5780601f10610281576101008083540402835291602001916102ac565b820191906000526020600020905b81548152906001019060200180831161028f57829003601f168201915b505050505081565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152336004820152819073471ece3750da237f93b8e339c536989b8978a438906370a0823190602401602060405180830381865afa15801561031e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610342919061055e565b101561034d57600080fd5b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810182905273471ece3750da237f93b8e339c536989b8978a438906323b872dd906064016020604051808303816000875af11580156103c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e891906104e2565b50604051339082156108fc029083906000818181858888f19350505050158015610416573d6000803e3d6000fd5b5060405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a250565b600180546102339061050b565b60006020808352835180602085015260005b8181101561048a5785810183015185820160400152820161046e565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6000602082840312156104db57600080fd5b5035919050565b6000602082840312156104f457600080fd5b8151801515811461050457600080fd5b9392505050565b600181811c9082168061051f57607f821691505b602082108103610558577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60006020828403121561057057600080fd5b505191905056fea164736f6c6343000818000a

Block Transaction Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
0x773B75CfB146bd5d1095fa9d6d45637f02B05119
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.