Stake
Curve Action Plugin - Stake
Description
Deposit LP tokens into the gauge.
Prior to depositing, ensure that the gauge has been approved to transfer amount
LP tokens on behalf of the caller.
Method
deposit(uint256, address)
Input Parameters
Name
Type
Description
to
FctAddress
Curve Gauge address
Method Parameters
Name
Type
Description
amount
FctValue
Amount of tokens to deposit
receiver
FctAddress
Address to deposit for.
Returned Values
No returned values
Example
Example with initParams
const stake = new Curve.actions.Stake({
chainId: 1,
initParams: {
to: "0x...",
methodParams: {
amount: "...",
receiver: "0x...",
}
}
})
Example without initParams
const stake = new Curve.actions.Stake({ chainId: 1 })
stake.input.set({
to: "0x...",
methodParams: {
amount: "...",
receiver: "0x...",
}
})
Learn more
Learn more about Curve stake function here
Last updated