WBERA
Inherits: Solady WETH
Functions
deposit
solidity
function deposit() external payable;
withdraw
solidity
function withdraw(uint256) external;
name
solidity
function name() public pure override returns (string memory);
symbol
solidity
function symbol() public pure override returns (string memory);
decimals
Returns the number of decimals used to get its user representation.
For example, if decimals
equals 2
, a balance of 505
tokens should be displayed to a user as 5,05
(505 / 10 ** 2
).
solidity
function decimals() public view returns (uint8);
totalSupply
Returns the amount of tokens in existence.
solidity
function totalSupply() public view override returns (uint256);
balanceOf
Returns the amount of tokens owned by owner
.
solidity
function balanceOf(address account) public view override returns (uint256);
transfer
Transfer amount
tokens from the caller to to
.
- the caller must have a balance of at least
amount
solidity
function transfer(address recipient, uint256 amount) public virtual override returns (bool);
allowance
Returns the amount of tokens that spender
can spend on behalf of owner
.
solidity
function allowance(address owner, address spender) public view virtual override returns (uint256);
approve
Sets amount
as the allowance of spender
over the caller's tokens.
solidity
function approve(address spender, uint256 amount) public virtual override returns (bool);
transferFrom
Transfers amount
tokens from from
to to
.
sender
must have a balance of at leastamount
- the caller must have allowance for
sender
's tokens of at leastamount
solidity
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool);