Skip to main content

claimQueue

Description:

Claim user unboost queue

Arguments:

NameTypeRequiredDescription
positionPositionYesposition field from boost.getQueuePosition
userAddressstringYesThe user address
vaultAddressstringYesThe address of the vault where the osTokens boosted

Example:

const params = {
userAddress: '0x...',
vaultAddress: '0x...',
}

const { position } = await sdk.boost.getQueuePosition(params)

if (!isClaimable) {
return
}

// Send transaction
const hash = await sdk.boost.claimQueue({ ...params, position })
// When you sign transactions on the backend (for custodians)
const { data, to, value } = await sdk.boost.claimQueue.encode({ ...params, position })
// Get an approximate gas per transaction
const gas = await sdk.boost.claimQueue.estimateGas({ ...params, position })