Pair (ERC 20)
This documentation covers ERC-20 functionality for denominating pool tokens. For JediSwap-specific functionality, see Pair.
Code
Events
Approvalâ
Emitted each time allowances is updated in approve, increaseAllowance, decreaseAllowance or transferFrom
Transferâ
Emitted each time a transfer occurs via transfer, transferFrom, mint, or burn.
View Functions
nameâ
Returns JediSwap Pair for all pairs.
symbolâ
Returns JEDIP 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.
State-Changing Functions
approveâ
Lets caller set their allowance for a spender.
Emits Approval.
increaseAllowanceâ
Lets caller increase their allowance for a spender by added_value.
Emits Approval.
decreaseAllowanceâ
Lets caller decrease their allowance for a spender by subtracted_value.
Emits Approval.
transferâ
Lets caller send pool tokens to an address.
Emits Transfer.
transferFromâ
Sends pool tokens from one address to another.
Requires approval.
Emits Transfer
Interface
ABI
See Pair ABI
Last updated