Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix the inflows sum adding when sender chain is source chain #2417

Merged
merged 11 commits into from
Feb 8, 2024
2 changes: 1 addition & 1 deletion x/uibc/quota/quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ 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
gsk967 marked this conversation as resolved.
Show resolved Hide resolved
// check ibc_denom is exists in leverage token registry
gsk967 marked this conversation as resolved.
Show resolved Hide resolved
if !ics20types.SenderChainIsSource(packet.GetSourcePort(), packet.GetSourceChannel(), denom) {
if ics20types.SenderChainIsSource(packet.GetSourcePort(), packet.GetSourceChannel(), denom) {
gsk967 marked this conversation as resolved.
Show resolved Hide resolved
gsk967 marked this conversation as resolved.
Show resolved Hide resolved
// since SendPacket did not prefix the denomination, we must prefix denomination here
sourcePrefix := ics20types.GetDenomPrefix(packet.GetDestPort(), packet.GetDestChannel())
gsk967 marked this conversation as resolved.
Show resolved Hide resolved
// NOTE: sourcePrefix contains the trailing "/"
Expand Down
Loading