Technical proposal for Enhancing Transaction Cost Management for Users with Ethereum-based Gas Price Settings
For the proposal in [Enhancing Transaction Cost Management for Users with Ethereum-based Gas Price Setting]() it will require a smart contract upgrade, ensuring that transactions with gas prices exceeding a defined threshold are automatically rejected.
To implement this enhancement, the propose will introduce a modifier in each operation that validates the gas price and rejects the transaction if it exceeds the threshold. By incorporating this modifier, we can effectively prevent transactions with excessive gas prices from being processed.
To ensure comprehensive coverage, it is necessary to apply this modifier for the redeem and mint operations of every token in the protocol.
In order to implement this modification, a smart contract upgrade through vote will be necessary. This upgrade will enable the integration of the gas price threshold validation logic within the existing codebase of the Money On Chain and Rif On Chain protocol.
To maintain the integrity and usability of the protocol, it is crucial to allow modification of the gas price threshold. However, this modification should only be able to be made by the address with the authority to pause the protocol, This restriction will ensure that any changes made to the threshold are carried out through authorization via governance.
Assuming that users will operate with the gas price reported by the RSK network node, to set the initial threshold the suggestions is take the historical maximum of the last year plus 1 wei. That gives a value of 0.0658 Gwei.
Technical proposal for Enhancing Transaction Cost Management for Users with Ethereum-based Gas Price Settings For the proposal in [Enhancing Transaction Cost Management for Users with Ethereum-based Gas Price Setting]() it will require a smart contract upgrade, ensuring that transactions with gas prices exceeding a defined threshold are automatically rejected. To implement this enhancement, the propose will introduce a modifier in each operation that validates the
gas price
and rejects the transaction if it exceeds the threshold. By incorporating this modifier, we can effectively prevent transactions with excessive gas prices from being processed. To ensure comprehensive coverage, it is necessary to apply this modifier for theredeem
andmint
operations of every token in the protocol. In order to implement this modification, a smart contract upgrade through vote will be necessary. This upgrade will enable the integration of the gas price threshold validation logic within the existing codebase of the Money On Chain and Rif On Chain protocol. To maintain the integrity and usability of the protocol, it is crucial to allow modification of the gas price threshold. However, this modification should only be able to be made by theaddress
with the authority to pause the protocol, This restriction will ensure that any changes made to the threshold are carried out through authorization via governance. Assuming that users will operate with thegas price
reported by the RSK network node, to set the initial threshold the suggestions is take the historical maximum of the last year plus1 wei
. That gives a value of0.0658 Gwei
.Link to proposal description