Multi hop routes on STONfi are encoded as sequences of operations that pass through several pools. The Omniston layer builds these sequences, and the STONfi SDK turns them into a single transaction payload.



Each hop is represented as a call to a specific pool contract with defined input and expected output. At execution time, the transaction processes these hops in order. Output from one hop becomes input to the next, while each pool applies its own fee and updates its balances.

If any hop fails to meet its local constraints or the overall route fails to meet the minimum output, the entire transaction reverts. This approach keeps multi hop routes atomic. Users do not end up with partial results from intermediate hops. Either the entire chain of swaps succeeds according to STONfi rules or the state remains unchanged, preserving the integrity of user balances. $TON $DOGS
TON-1.5%
DOGS-6.21%
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
Add a comment
Add a comment
No comments
  • Pinned