Skip to content

bug: cross-subnet stake move/swap/transfer displays inaccurate received amounts #909

@bitloi

Description

@bitloi

The confirmation table for cross-subnet move_stake, transfer_stake, and swap_stake shows a received amount based on linear price math (alpha * price), but the actual on-chain swap goes through two AMM pool legs with slippage. The sim_swap runtime result with the real amount is already fetched but never passed to the display function.

Also, the cross-subnet path always subtracts extrinsic_fee from the received amount even when a proxy is paying it. The same-subnet path has the if not proxy: guard but the cross-subnet path is missing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions