Unstake

Curve Action Plugin - Unstake

Description

Withdraw LP tokens from the gauge.

Method

withdraw(uint256)

Input Parameters

NameTypeDescription

to

FctAddress

Curve Gauge address

Method Parameters

NameTypeDescription

amount

FctValue

Amount of tokens to withdraw

Returned Values

No returned values

Example

Example with initParams

const unstake = new Curve.actions.Unstake({
   chainId: 1,
   initParams: {
     to: "0x...",
     methodParams: {
       amount: "...",
     }
   }
})

Example without initParams

const unstake = new Curve.actions.Unstake({ chainId: 1 })

unstake.input.set({
     to: "0x...",
     methodParams: {
       amount: "...",
     }
})

Learn more

Learn more about Curve unstake function here

Last updated