Cancel Redeem

cancelRedeemPayload can cancel the redeem lock, the Cetus locked will be return back to the manager and the xCetus will be available again

Function Parameters

  • venft_id: Your VeNFT id

  • lock_id: id of a redemption batch under lockup period

const lock_id = '0x005ba9202a5d9e41c73155a1...'
const lock_cetus = await sdk.XCetusModule.getLockCetus(lock_id)

if (lock_cetus && XCetusUtil.isLocked(lock_cetus)) {
  const payload = sdk.XCetusModule.cancelRedeemPayload({
    venft_id,
    lock_id,
  })
}

Last updated