Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
gsk967 committed Feb 7, 2024
1 parent 918ed52 commit 098e6b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x/uibc/quota/quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ func (k Keeper) UndoUpdateQuota(denom string, amount sdkmath.Int) error {
// RecordIBCInflow will save the inflow amount if token is registered otherwise it will skip
func (k Keeper) RecordIBCInflow(packet channeltypes.Packet, denom, amount string,
) exported.Acknowledgement {
// if chain is recevier and sender chain is source then we need create ibc_denom (ibc/hash(channel,denom)) to
// check ibc_denom to if it exists in the leverage token registry.
// if chain is recevier and sender chain is source then we need create ibc_denom (ibc/hash(channel,denom)).
if ics20types.SenderChainIsSource(packet.GetSourcePort(), packet.GetSourceChannel(), denom) {
// SendPacket did not prefix the denom, so we must prefix denom here
// NOTE: sourcePrefix already contains the trailing "/"
Expand All @@ -243,7 +242,7 @@ func (k Keeper) RecordIBCInflow(packet channeltypes.Packet, denom, amount string
// if we receive back a token, that was originally sent from UMEE, then we need to fetch the native denom
// receive denom(port/channel/base_denom) to base_denom

// remove prefix added by sender chain
// remove prefix added by the sender chain
voucherPrefix := ics20types.GetDenomPrefix(packet.GetSourcePort(), packet.GetSourceChannel())
unprefixedDenom := denom[len(voucherPrefix):]
// coin denomination used in sending from the escrow address
Expand Down

0 comments on commit 098e6b7

Please sign in to comment.