Base
Last updated
Last updated
Facilitators of core and periphery contracts.
Params:
Returns:
Called to msg.sender after minting liquidity to a position
Params:
Add liquidity to an initialized pool
Params:
Returns:
Handles the payment of tokens or ETH from one address to another
Params:
Name
Type
Description
params
CreateAndInitBattleParams
Parameters for creating and initializing a pool. See Params
Name
Type
Description
battle
address
The address of the created battle contract
Name
Type
Description
amountOwed
uint256
The amount of tokens owed for the minted liquidity
data
bytes
Any data passed through by the caller
Name
Type
Description
AddLiqParams
params
Params required for adding liquidity. See Params
Name
Type
Description
liquidityAmount
uint128
The amount of liquidity to add
battleAddr
address
The address to which an AMM pool is created
Name
Type
Description
tokenAddr
address
The address of the token to pay
payer
address
The account that should pay the tokens
recipient
address
The account that should receive the tokens
value
uint256
The amount to pay