TON stores contract state in a structured tree format, where each contract has its own isolated storage and code. Updates happen by applying transactions to this storage, and every change can be traced through the chain of blocks.



STONfi uses this model to keep pools, routing components and farming contracts clearly separated. Each pool has its own state tree with balances, fee parameters and share information. Farming contracts maintain separate trees for reward tracking, while routing logic focuses on building transactions that touch these components in a controlled sequence.

For integrators, this structure means that every important value can be read directly from the chain. Tools built on the STONfi SDK can inspect pool reserves, shares and reward accumulators without relying on private APIs, which keeps analytics and execution aligned. $DOGS $TON
TON1.17%
DOGS5.78%
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