Pot2Pump ABI
Pot2PumpFactory Module
Pot2PumpFactory ModulecreatePair method
createPair methodCreates a new trading pair in Pot2Pump.
### ABI Format
{
"inputs": [{
"components": [{
"internalType": "address",
"name": "raisedToken",
"type": "address"
}, {
"internalType": "string",
"name": "name",
"type": "string"
}, {
"internalType": "string",
"name": "symbol",
"type": "string"
}, {
"internalType": "address",
"name": "swapHandler",
"type": "address"
}],
"internalType": "struct Pot2PumpFactory.CreatePairParams",
"name": "params",
"type": "tuple"
}],
"name": "createPair",
"outputs": [{
"internalType": "address",
"name": "pair",
"type": "address"
}, {
"internalType": "address",
"name": "launchedToken",
"type": "address"
}],
"stateMutability": "nonpayable",
"type": "function"
}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
raisedTokenis properly registered in the factory contract.The
swapHandleraddress 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
depositRaisedTokenEarly depositors (first half of launch cycle) receive additional rewards
refundRaisedTokenhas 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