Closed kasparkallas closed 4 months ago
Install this PR (you need to setup Github packages):
yarn add @superfluid-finance/ethereum-contracts@PR1952
yarn add @superfluid-finance/sdk-core@PR1952
yarn add @superfluid-finance/sdk-redux@PR1952
@0xPilou
btw, please setup signed commits:
Used $ git rebase dev --signoff
to fix unsigned commits.
Link: https://xkcd.com/1952
Another PR, why?
We're releasing V2 for the vesting scheduler; the initial plan was to release it with only ergonomic improvements; but we'll release it bundled with the "claimable vesting schedule" feature. This PR is an epic feature-set which upon merging will confirm the delivery of the feature.
List of Changes
totalAmount
not being perfectly divisible by the calculatedflowRate
)remainderAmount
to the storedVestingSchedule
structremainderAmount
during the early end executioncreateVestingSchedule
overload withoutbytes memory ctx
createVestingScheduleFromAmountAndDuration
function (with overload variants)createAndExecuteVestingScheduleFromAmountAndDuration
function (with overload variants) (combinescreateVestingScheduleFromAmountAndDuration
andexecuteCliffAndFlow
)host.registerAppWithKey(configWord, registrationKey);
(deprecated) withhost.registerApp(configWord);
in the constructorstring memory registrationKey
from constructor parameters (not needed anymore)0
).startDate
is below current block timestamp.cliffAndFlowDate
to be in the current block timestamp (this enables schedule creation and execution in the same transaction).getMaximumNeededTokenAllowance
utility function.mapCreateVestingScheduleParams
utility function.Included PRs
Deployments
Diffs
Interfaces (
IVestingScheduler.sol
vsIVestingSchedulerV2.sol
)Contracts (
VestingScheduler.sol
vsVestingSchedulerV2.sol
)