Balance Tracking in Programs #1007
Replies: 2 comments
-
This was one of the design topics we punted on until we gathered more conviction on the design of Programs. I think we could either:
The EVM looks closer to [2] and the SVM looks closer to [1]. |
Beta Was this translation helpful? Give feedback.
-
I think this makes sense? In most chains, I believe the native currency is the most popular asset used in smart contracts.
I think having a standard, small library of native balance host functions for program-enabled VMs seems reasonable.
I also think this would be useful. I would refer to this as "native currency" (you would attach it via a separate type of invocation, not just bumping up the available fees). |
Beta Was this translation helpful? Give feedback.
-
Vms do not currently expose a standard way to interact with the fee paying currency except through the FeeHandler interface. This makes it difficult for programs to interact with this currency and prevents it from being used within programs.
Beta Was this translation helpful? Give feedback.
All reactions