Mint
Add liquidity in the pair AA and mint pool assets.
Arguments
Option a: Send both paired assets
outputrequiredOption b: Send one asset
outputand mintdataUsed to add liquidity using a single asset.to
dataoptionalDefine the receiver address.
deadline
dataoptionalDefine a timestamp, the request will be bounced if deadline expired.
Example
Option a
{
trigger: {
outputs: {
base: 500000,
'WhsD5Y/1NeKROgQojGwfe9EBC7NH4KnAk4CorCrVRhs=': 1000000
}
}
}Option b
{
trigger: {
outputs: {
base: 1000000
},
data: {
mint: '1'
}
}
}Returns
{
responseVars: {
type: 'mint',
asset_amount: 500000
}
}Last updated
Was this helpful?