Minimal ERC20 interface for Algebra Contains a subset of the full ERC20 interface that is used in Algebra
Transfer(address,address,uint256)
Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.
Name | Type | Description |
---|---|---|
Approval(address,address,uint256)
Event emitted when the approval amount for the spender of a given owner's tokens changes.
Name | Type | Description |
---|---|---|
balanceOf(address)
view external
Returns the balance of a token
Returns:
transfer(address,uint256)
external
Transfers the amount of token from the `msg.sender` to the recipient
Returns:
allowance(address,address)
view external
Returns the current allowance given to a spender by an owner
Returns:
approve(address,uint256)
external
Sets the allowance of a spender from the `msg.sender` to the value `amount`
Returns:
transferFrom(address,address,uint256)
external
Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`
Returns:
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|