Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Come up with deterministic strategy for gas calculation #9

Closed
Tracked by #2716
swift1337 opened this issue Aug 29, 2024 · 0 comments
Closed
Tracked by #2716

Come up with deterministic strategy for gas calculation #9

swift1337 opened this issue Aug 29, 2024 · 0 comments
Assignees

Comments

@swift1337
Copy link
Contributor

swift1337 commented Aug 29, 2024

In TON a smart contract might consume gas for its invocation.

We need to make sure that technically and economically in any circumstance :

  • Deposits / withdrawals / admin commands have enough gas
  • Gas consumption doesn't affect locked funds
  • Huge cross-chain payloads don't affect locked funds
  • Gateway can't run out of gas (also take into account storage costs)
  • Gas calculation is deterministic up to certain ceiling

Also, should we add some getter that returns a ballpark estimations for potential deposit / deposit_and_call? This might be useful on frontend for showing approximate tx costs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant