Skip to content

Commit

Permalink
use tokens from shares tuncated
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Aug 16, 2024
1 parent c2cdb44 commit 18ed032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/move/keeper/staking.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (k Keeper) ShareToAmount(ctx context.Context, valAddr sdk.ValAddress, share
return math.ZeroInt(), err
}

tokens := val.TokensFromShares(sdk.NewDecCoins(share))
tokens := val.TokensFromSharesTruncated(sdk.NewDecCoins(share))
return tokens.AmountOf(share.Denom).TruncateInt(), nil
}

Expand Down

0 comments on commit 18ed032

Please sign in to comment.