IncreaseUnlockTime

Curve Action Plugin - IncreaseUnlockTime

Description

Extend the unlock time on a lock that already exists.

Method

increase_unlock_time(uint256)

Input Parameters

No required input parameters

Method Parameters

NameTypeDescription

unlock_time

FctValue

New epoch time for unlocking. This value is rounded down to the nearest whole week. The maximum duration for a lock is four years.

Returned Values

No returned values

Example

Example with initParams

const increaseUnlockTime = new Curve.actions.IncreaseUnlockTime({
   chainId: 1,
   initParams: {
     methodParams: {
       unlock_time: "...",
     }
   }
})

Example without initParams

const increaseUnlockTime = new Curve.actions.IncreaseUnlockTime({ chainId: 1 })

increaseUnlockTime.input.set({
    methodParams: {
       unlock_time: "...",
    }
})

Learn more

Learn more about Curve increase unlock time function here

Last updated