Mint

Add liquidity in the pair AA and mint pool assets.

Arguments

  • Option a: Send both paired assets output required

  • Option b: Send one asset output and mint data Used to add liquidity using a single asset.

  • to data optional

    Define the receiver address.

  • deadline data optional

    Define 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
}
}