ics20 transfers received by sequencer result in deposit events of assets that are prepended with a <dest_port>/<dest_channel>/ prefix even if the received asset is a source.
Instead, if sequencer is the source of the asset, <source_port>/<source_channel>/ should be stripped.
Problematic code:
|
let trace_with_dest = |
|
prepend_denom_if_not_refund(&denom_trace, dest_port, dest_channel, is_refund); |
|
|
|
// check if this is a transfer to a bridge account and |
|
// execute relevant state changes if it is |
|
execute_ics20_transfer_bridge_lock( |
|
state, |
|
recipient, |
|
&trace_with_dest, |
|
packet_amount, |
|
packet_data.memo.clone(), |
|
is_refund, |
┆Issue Number: ENG-814
ics20 transfers received by sequencer result in deposit events of assets that are prepended with a
<dest_port>/<dest_channel>/prefix even if the received asset is a source.Instead, if sequencer is the source of the asset,
<source_port>/<source_channel>/should be stripped.Problematic code:
astria/crates/astria-sequencer/src/ibc/ics20_transfer.rs
Lines 440 to 451 in b401e4f
┆Issue Number: ENG-814