STONfi contracts are built to favor explicit reverts over silent degradation. When an operation violates a constraint, such as an invalid ratio for liquidity, an expired deadline or an output below the minimum, the contract aborts and leaves state unchanged.



The STONfi SDK anticipates many of these failure modes and avoids constructing transactions that are likely to fail. Still, if conditions change between preparation and execution, the contracts act as the final line of defense. No partial updates or half completed trades are allowed to persist on chain.

For integrators, this means that unexpected situations result in clear failures rather than inconsistent states. Applications can recover by refreshing quotes and presenting new options, while users retain control over when to retry under updated conditions. $TON $DOGS
TON-1.42%
DOGS-3.67%
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