more readable pseudo

This commit is contained in:
Aditya Sripal 2018-08-07 17:04:22 -07:00
parent feb9a22663
commit 7539e212ee
1 changed files with 2 additions and 1 deletions

View File

@ -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
```