Skip to content

Commit

Permalink
fix: fee calculation in oracle (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-reorg authored Mar 25, 2023
1 parent 540e33a commit 4a1ed45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/oracle/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (k Keeper) distributeReward(ctx sdk.Context, relayer sdk.AccAddress, signed

// calculate the reward to distribute to each other relayer
if len(otherRelayers) > 0 {
otherRelayerReward = relayerFee.Mul(sdkmath.NewInt(100 - int64(relayerRewardShare))).Mul(relayerFee).Quo(sdkmath.NewInt(100)).Quo(sdkmath.NewInt(int64(len(otherRelayers))))
otherRelayerReward = relayerFee.Mul(sdkmath.NewInt(100 - int64(relayerRewardShare))).Quo(sdkmath.NewInt(100)).Quo(sdkmath.NewInt(int64(len(otherRelayers))))
}

bondDenom := k.StakingKeeper.BondDenom(ctx)
Expand Down

0 comments on commit 4a1ed45

Please sign in to comment.