Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Multichain Info
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 57360627 | 15 secs ago | 59.48557239 CELO | ||||
| 57358962 | 28 mins ago | 20.89417074 CELO | ||||
| 57358942 | 28 mins ago | 78.53488053 CELO | ||||
| 57358938 | 28 mins ago | 37.20082869 CELO | ||||
| 57358933 | 28 mins ago | 82.26990826 CELO | ||||
| 57358922 | 28 mins ago | 71.49013761 CELO | ||||
| 57358918 | 28 mins ago | 28.69310461 CELO | ||||
| 57358385 | 37 mins ago | 44.61342828 CELO | ||||
| 57358325 | 38 mins ago | 39.39412449 CELO | ||||
| 57358318 | 38 mins ago | 85.4535826 CELO | ||||
| 57358315 | 38 mins ago | 57.9978513 CELO | ||||
| 57358302 | 39 mins ago | 38.19407273 CELO | ||||
| 57358289 | 39 mins ago | 102.82523529 CELO | ||||
| 57358195 | 40 mins ago | 46.92548099 CELO | ||||
| 57358190 | 40 mins ago | 30.07867726 CELO | ||||
| 57358139 | 41 mins ago | 72.97486255 CELO | ||||
| 57358134 | 41 mins ago | 110.32691441 CELO | ||||
| 57358129 | 41 mins ago | 16.71632402 CELO | ||||
| 57358045 | 43 mins ago | 40.6315233 CELO | ||||
| 57358037 | 43 mins ago | 5.29815676 CELO | ||||
| 57358031 | 43 mins ago | 56.97077447 CELO | ||||
| 57358022 | 43 mins ago | 62.00161151 CELO | ||||
| 57358017 | 43 mins ago | 70.93161281 CELO | ||||
| 57358011 | 43 mins ago | 51.62595537 CELO | ||||
| 57358006 | 43 mins ago | 121.06771714 CELO |
Cross-Chain Transactions
Loading...
Loading
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);
}
}{
"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
- No Contract Security Audit Submitted- Submit Audit Here
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"}]Contract Creation Code
60c0604052600c60809081526b577261707065642043656c6f60a01b60a05260009061002b9082610116565b506040805180820190915260058152645743454c4f60d81b60208201526001906100559082610116565b506002805460ff1916601217905534801561006f57600080fd5b506101d5565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061009f57607f821691505b6020821081036100bf57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610111576000816000526020600020601f850160051c810160208610156100ee5750805b601f850160051c820191505b8181101561010d578281556001016100fa565b5050505b505050565b81516001600160401b0381111561012f5761012f610075565b6101438161013d845461008b565b846100c5565b602080601f83116001811461017857600084156101605750858301515b600019600386901b1c1916600185901b17855561010d565b600085815260208120601f198616915b828110156101a757888601518255948401946001909101908401610188565b50858210156101c55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610584806101e46000396000f3fe6080604052600436106100695760003560e01c806352d11fc91161004357806352d11fc9146100f457806395d89b4114610141578063d0e30db01461015657600080fd5b806306fdde031461007d5780632e1a7d4d146100a8578063313ce567146100c857600080fd5b366100785761007661015a565b005b600080fd5b34801561008957600080fd5b50610092610226565b60405161009f919061045c565b60405180910390f35b3480156100b457600080fd5b506100766100c33660046104c9565b6102b4565b3480156100d457600080fd5b506002546100e29060ff1681565b60405160ff909116815260200161009f565b34801561010057600080fd5b5061011c73471ece3750da237f93b8e339c536989b8978a43881565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161009f565b34801561014d57600080fd5b5061009261044f565b6100765b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015234602482015273471ece3750da237f93b8e339c536989b8978a4389063a9059cbb906044016020604051808303816000875af11580156101ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ee91906104e2565b5060405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2565b600080546102339061050b565b80601f016020809104026020016040519081016040528092919081815260200182805461025f9061050b565b80156102ac5780601f10610281576101008083540402835291602001916102ac565b820191906000526020600020905b81548152906001019060200180831161028f57829003601f168201915b505050505081565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152336004820152819073471ece3750da237f93b8e339c536989b8978a438906370a0823190602401602060405180830381865afa15801561031e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610342919061055e565b101561034d57600080fd5b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810182905273471ece3750da237f93b8e339c536989b8978a438906323b872dd906064016020604051808303816000875af11580156103c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e891906104e2565b50604051339082156108fc029083906000818181858888f19350505050158015610416573d6000803e3d6000fd5b5060405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a250565b600180546102339061050b565b60006020808352835180602085015260005b8181101561048a5785810183015185820160400152820161046e565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6000602082840312156104db57600080fd5b5035919050565b6000602082840312156104f457600080fd5b8151801515811461050457600080fd5b9392505050565b600181811c9082168061051f57607f821691505b602082108103610558577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60006020828403121561057057600080fd5b505191905056fea164736f6c6343000818000a
Deployed Bytecode
0x6080604052600436106100695760003560e01c806352d11fc91161004357806352d11fc9146100f457806395d89b4114610141578063d0e30db01461015657600080fd5b806306fdde031461007d5780632e1a7d4d146100a8578063313ce567146100c857600080fd5b366100785761007661015a565b005b600080fd5b34801561008957600080fd5b50610092610226565b60405161009f919061045c565b60405180910390f35b3480156100b457600080fd5b506100766100c33660046104c9565b6102b4565b3480156100d457600080fd5b506002546100e29060ff1681565b60405160ff909116815260200161009f565b34801561010057600080fd5b5061011c73471ece3750da237f93b8e339c536989b8978a43881565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161009f565b34801561014d57600080fd5b5061009261044f565b6100765b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015234602482015273471ece3750da237f93b8e339c536989b8978a4389063a9059cbb906044016020604051808303816000875af11580156101ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ee91906104e2565b5060405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2565b600080546102339061050b565b80601f016020809104026020016040519081016040528092919081815260200182805461025f9061050b565b80156102ac5780601f10610281576101008083540402835291602001916102ac565b820191906000526020600020905b81548152906001019060200180831161028f57829003601f168201915b505050505081565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152336004820152819073471ece3750da237f93b8e339c536989b8978a438906370a0823190602401602060405180830381865afa15801561031e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610342919061055e565b101561034d57600080fd5b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810182905273471ece3750da237f93b8e339c536989b8978a438906323b872dd906064016020604051808303816000875af11580156103c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e891906104e2565b50604051339082156108fc029083906000818181858888f19350505050158015610416573d6000803e3d6000fd5b5060405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a250565b600180546102339061050b565b60006020808352835180602085015260005b8181101561048a5785810183015185820160400152820161046e565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6000602082840312156104db57600080fd5b5035919050565b6000602082840312156104f457600080fd5b8151801515811461050457600080fd5b9392505050565b600181811c9082168061051f57607f821691505b602082108103610558577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60006020828403121561057057600080fd5b505191905056fea164736f6c6343000818000a
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.