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
Checks that the pair status is not paused
Verifies current time hasn't exceeded end time
Deposits made in the first half of the launch cycle are considered early deposits
Automatically executes
_perform()
if total deposits reach minimum cap
refundRaisedToken
This method is used to refund raised tokens.
Refunds are only possible when:
Fundraising period has ended and minimum cap wasn't reached
Or pair status is paused
Returns user's deposited tokens
Updates early deposit records
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
Checks pair status must be Success
Transfers claimable LP tokens to specified address
Includes reentrancy protection (nonReentrant)
claimableLP
This method is used to query claimable LP token amount.
Structure
claimer
address
Query address
Returns
""
uint256
Amount of claimable LP tokens
Checks pair status must be Success
Calculates total LP amount for the address
Returns unclaimed LP amount (total minus claimed)
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