Skip to main content

upgradeLeverageStrategy

Description:

Upgrade leverage strategy contract

Arguments:

NameTypeRequiredDescription
userAddressstringYesThe user address
vaultAddressstringYesThe address of the vault where the osTokens boosted or will be boosted

Example:

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

// Send transaction
const hash = await sdk.boost.upgradeLeverageStrategy(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)