functionland / sugarfunge-node

The SugarFunge blockchain powers the SugarFunge Protocol. A protocol for creating privately-owned economies without the complexity of building and maintaining their own blockchain infrastructure. Empowering businesses with digital and physical assets with minting, crafting and trading mechanics.
Other
0 stars 1 forks source link

[Priority 4] Remove Gas from all transactions (or refund the exact amount that is reduced) except create pool #5

Open ehsan6sha opened 1 year ago

ehsan6sha commented 1 year ago

Currently transactions require a gas fee paid by gas token (sugar). We needto allow transactions to go through for everyone, so we can: 1- charge users' accounts with enough gas fee to start and then recharge on transactions based on good act 2- not require gas fees for transactions (except create pool which should be controlled) or it dynamically calculates how much gas fee is reduced and refund. Right now it is a fixed amount refunded

ehsan6sha commented 10 months ago

The refund is not dynamic and is fixed which is guaranteed that users go out of sugar after a certain amount of time and transactions. We need to make sure the exact amount of Sugar deducted from users' account is refunded to them and not just a fixed amount. the refund at least in verify_manifest doesn’t work although the call exists there. I checked by calling this API and the sugar goes down without being refunded 99999994457199996728905990 99999994446599996615257990 99999994435999996501609990 => Mauricio: make the refund amount dynamic