Skip to content

Commit e85a0ac

Browse files
shekhirinklkvr
authored andcommitted
docs: explain why we take amount_destination
1 parent b884aa3 commit e85a0ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rpc/relay.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,8 @@ impl Relay {
14331433
)
14341434
.await?
14351435
{
1436+
// We take `amount_destination` here, because `sourced_funds` is the amount of
1437+
// destination chain asset
14361438
(new_chains.iter().map(|source| source.amount_destination).sum(), new_chains)
14371439
} else {
14381440
// We don't have enough funds across all chains, so we revert back to single chain

0 commit comments

Comments
 (0)