Partner swap

Currently, only established project teams are eligible for applying for partner swap.

Partner

We offer a partner function. When you utilize the standard swap method, we will allocate the agreed-upon share to the partner. But, because of sui contract limitations, partner doesn't work in the latest smart router function with split order or integrate other pools like deepbook.

Partner AccountCap

Only verified account are eligible to collect partner ref fees. When creating a partner, we generate an object partner AccountCap(you can see it in your NFT list). Only accounts that possess the AccountCap are able to claim the fees.

Claim Ref Fee

We provider one function sdk.Pool.claimPartnerRefFeePayload()to check ref fee.

Function input params

Please refer to the original function for specific parameter types.

  • partnerCap: The object id about partner cap.

  • partner: The object id about partner.

  • coinType: The coin type abount fee coin type. You can obtain the referral fee using this specified method.

Example

const partnerCap = '0x...'
const partner = '0x...'
const coinType = '0x...::...::....'
const claimRefFeePayload = await sdk.Pool.claimPartnerRefFeePayload(partnerCap, partner, coinType)
const transferTxn = await sdk.fullClient.sendTransaction(buildTestAccount(), claimRefFeePayload)
console.log('doCreatPool: ', JSON.stringify(transferTxn))

Check ref fee of partner

We provider one function sdk.Pool.getPartnerRefFeeAmount() to check ref fee.

Function input params

Please refer to the original function for specific parameter types.

  • partnerID: The object id about partner.

Example

const partnerID = '0x...'
const refFee = await sdk.Pool.getPartnerRefFeeAmount(partnerID)
console.log('ref fee:', refFee)

Interested in Partner Swap? Submit a request from here:

https://4bx69zjogri.typeform.com/to/UUETIX2f

Last updated