Convert xCetus to Cetus with lock period

Convert xCetus to Cetus, first step is to lock the Cetus for a period. When the time is reach, cetus can be redeem and xCetus will be burned.

Function Parameters

  • amount: the number of xCetus you want to convert

  • venft_id: Your VeNFT id

  • lock_day: The number of days you want to lock.

const lock_day = 15
const amount_input = 20000
const amount = await sdk.XCetusModule.redeemNum(amount_input, lock_day)

sdk.XCetusModule.redeemLockPayload({
  venft_id,
  amount,
  lock_day,
})

Last updated