Pot2Pump ABI
Pot2PumpFactory
Module
Pot2PumpFactory
ModulecreatePair
method
createPair
methodCreates a new trading pair in Pot2Pump.
Structure
params
tuple
Parameter struct required for creating the trading pair.
raisedToken
address
Address of the token being raised.
name
string
Name of the new trading pair.
symbol
string
Symbol of the new trading pair.
swapHandler
address
Address of the swap handler contract.
Returns
pair
address
Address of the newly created trading pair.
handler
address
Address of the handler linked to the pair.
The caller must verify that the
raisedToken
is properly registered in the factory contract.The
swapHandler
address must point to a valid and functional swap handler contract.This method will deploy new token and pair contracts.
The newly created pair will be initialized with the appropriate parameters upon deployment.
depositRaisedToken
& refundRaisedToken
methods
depositRaisedToken
This method is used to deposit fundraising tokens.
Structure
depositor
address
Depositor's address
amount
uint256
Deposit amount
refundRaisedToken
This method is used to refund raised tokens.
Ensure contract approval before
depositRaisedToken
Early depositors (first half of launch cycle) receive additional rewards
refundRaisedToken
has strict triggering conditionsBoth methods are non-reentrant to prevent attacks
claimLP
& claimableLP
methods
claimLP
This method is used to claim LP tokens.
Structure
claimer
address
Claimer's address
claimableLP
This method is used to query claimable LP token amount.
Structure
claimer
address
Query address
Returns
""
uint256
Amount of claimable LP tokens
Only available when pair status is Success
LP token calculation based on user participation
Each address can claim only once
Check claimable amount before claiming
Last updated