more readable pseudo
This commit is contained in:
parent
feb9a22663
commit
7539e212ee
|
@ -47,7 +47,8 @@ ConvertAccount(vacc ContinuousVestingAccount, ctx sdk.Context) (BaseAccount):
|
|||
|
||||
// Uses time in context to calculate total unlocked coins
|
||||
TotalUnlockedCoins(vacc ContinuousVestingAccount, ctx sdk.Context) sdk.Coins:
|
||||
return ReceivedCoins + OriginalCoins * (Now - StartTime) / (EndTime - StartTime)
|
||||
unlockedCoins := ReceivedCoins + OriginalCoins * (Now - StartTime) / (EndTime - StartTime)
|
||||
return unlockedCoins
|
||||
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue