Skip to main content

unlock

Description:

Unboost your boosted osToken

Arguments:

NameTypeRequiredDescription
percentnumberYesThe percent to unboost (100 at max)
userAddressstringYesThe user address
vaultAddressstringYesThe address of the vault where the osTokens boosted

Example:

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

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