Pair (ERC-20)
This documentation covers ERC-20 functionality for denominating pool tokens. For DoveSwap-specific functionality, see Pair.
Events
Approvalβ
event Approval(address indexed owner, address indexed spender, uint value);Emitted each time an approval occurs via approve or permit.
Transferβ
event Transfer(address indexed from, address indexed to, uint value);Emitted each time a transfer occurs via transfer, transferFrom, mint, or burn.
Read-Only Functions
nameβ
function name() external pure returns (string memory);Returns DoveSwap LP for all pairs.
symbolβ
Returns DOV-LP for all pairs.
decimalsβ
Returns 18 for all pairs.
totalSupplyβ
Returns the total amount of pool tokens for a pair.
balanceOfβ
Returns the amount of pool tokens owned by an address.
allowanceβ
Returns the amount of liquidity tokens owned by an address that a spender is allowed to transfer via transferFrom.
DOMAIN_SEPARATORβ
Returns a domain separator for use in permit.
PERMIT_TYPEHASHβ
Returns a typehash for use in permit.
noncesβ
Returns the current nonce for an address for use in permit.
State-Changing Functions
approveβ
Lets msg.sender set their allowance for a spender.
Emits Approval.
transferβ
Lets msg.sender send pool tokens to an address.
Emits Transfer.
transferFromβ
Sends pool tokens from one address to another.
Requires approval.
Emits Transfer.
permitβ
Sets the allowance for a spender where approval is granted via a signature.
Emits Approval.
Last updated