You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Get the amount of tokens that are already vested or released, but still locked due to lockup.
/// Takes raw vesting schedule, in case the internal vesting schedule is private.
pub fn get_locked_vested_amount(&self, vesting_schedule: VestingSchedule) -> WrappedBalance {
(self.get_locked_amount().0 - self.get_unvested_amount(vesting_schedule).0).into()
}
If lockup starts earlier than vesting, we crash because we have a negative result after subtracting
The text was updated successfully, but these errors were encountered:
I am sorry, I misinformed you above, there's nothing about termination. I deleted my wrong statements above not to misinform anyone else. The bug exists, though.
telezhnaya
changed the title
lockup_contract: crashing on method get_locked_vested_amount
lockup_contract: some view methods crashing or giving incorrect values
Dec 17, 2021
https://github.com/near/core-contracts/blob/master/lockup/src/getters.rs#L118
If lockup starts earlier than vesting, we crash because we have a negative result after subtracting
The text was updated successfully, but these errors were encountered: