Fix MsigGetAvailableBalance

This commit is contained in:
Aayush Rajasekaran 2020-09-14 21:12:32 -04:00
parent f9ea3935ff
commit 6acd3d6028

View File

@ -883,9 +883,8 @@ func (a *StateAPI) MsigGetAvailableBalance(ctx context.Context, addr address.Add
return act.Balance, nil
}
minBalance := types.BigDiv(st.InitialBalance, types.NewInt(uint64(st.UnlockDuration)))
minBalance = types.BigMul(minBalance, types.NewInt(uint64(offset)))
return types.BigSub(act.Balance, minBalance), nil
al := st.AmountLocked(offset)
return types.BigSub(act.Balance, al), nil
}
func (a *StateAPI) MsigGetVested(ctx context.Context, addr address.Address, start types.TipSetKey, end types.TipSetKey) (types.BigInt, error) {