Fix MsigGetAvailableBalance
This commit is contained in:
parent
f9ea3935ff
commit
6acd3d6028
@ -883,9 +883,8 @@ func (a *StateAPI) MsigGetAvailableBalance(ctx context.Context, addr address.Add
|
|||||||
return act.Balance, nil
|
return act.Balance, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
minBalance := types.BigDiv(st.InitialBalance, types.NewInt(uint64(st.UnlockDuration)))
|
al := st.AmountLocked(offset)
|
||||||
minBalance = types.BigMul(minBalance, types.NewInt(uint64(offset)))
|
return types.BigSub(act.Balance, al), nil
|
||||||
return types.BigSub(act.Balance, minBalance), nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *StateAPI) MsigGetVested(ctx context.Context, addr address.Address, start types.TipSetKey, end types.TipSetKey) (types.BigInt, error) {
|
func (a *StateAPI) MsigGetVested(ctx context.Context, addr address.Address, start types.TipSetKey, end types.TipSetKey) (types.BigInt, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user