Skip to content

Commit

Permalink
change variable name fCoin to foreignCoin
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Apr 22, 2024
1 parent 7fe367f commit e5e4e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/crosschain/keeper/grpc_query_cctx_rate_limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ func ConvertCctxValue(
// skip if no coin found for this chainID
return sdk.NewDec(0)
}
fCoin, found := foreignCoinFromChainMap[strings.ToLower(cctx.InboundTxParams.Asset)]
foreignCoin, found := foreignCoinFromChainMap[strings.ToLower(cctx.InboundTxParams.Asset)]
if !found {
// skip if no coin found for this Asset
return sdk.NewDec(0)
}
decimals = uint64(fCoin.Decimals)
decimals = uint64(foreignCoin.Decimals)

// given decimals = 6, the `oneZrc20` amount will be 10^6 = 1000000
oneZrc20 := sdk.NewDec(10).Power(decimals)
Expand Down

0 comments on commit e5e4e28

Please sign in to comment.