mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-07-01 10:22:30 +00:00
* clear unresolved claims for the initiators as well (#473)
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
61adbc0a5d
commit
702b9d6f7e
@ -10,6 +10,13 @@ const (
|
||||
rddlTokenAmount string = "998.85844748"
|
||||
)
|
||||
|
||||
func Test2FloatConvertion1RDDL(t *testing.T) {
|
||||
t.Parallel()
|
||||
var expectedValue uint64 = 100000000
|
||||
value := RDDLToken2Uint(1)
|
||||
assert.Equal(t, expectedValue, value)
|
||||
}
|
||||
|
||||
func Test2FloatConvertion(t *testing.T) {
|
||||
t.Parallel()
|
||||
var expectedValue uint64 = 99885844748
|
||||
|
@ -67,6 +67,10 @@ func (k msgServer) clearUnresolvedClaims(ctx sdk.Context, start int64) (err erro
|
||||
currentAmounts[address] += amount
|
||||
}
|
||||
|
||||
for address, amount := range claims.initiator {
|
||||
currentAmounts[address] += amount
|
||||
}
|
||||
|
||||
totalAmounts := make(map[string]uint64)
|
||||
for participantAddress := range currentAmounts {
|
||||
stagedBalance := k.bankKeeper.GetBalance(ctx, sdk.MustAccAddressFromBech32(participantAddress), k.GetParams(ctx).StagedDenom)
|
||||
|
Loading…
x
Reference in New Issue
Block a user