Skip to content

Charge gas from registered contract rent for dex sudo calls#365

Merged
codchen merged 4 commits intomasterfrom
tony-chen-charge-gas
Nov 14, 2022
Merged

Charge gas from registered contract rent for dex sudo calls#365
codchen merged 4 commits intomasterfrom
tony-chen-charge-gas

Conversation

@codchen
Copy link
Collaborator

@codchen codchen commented Nov 3, 2022

Describe your changes and provide context

When a sudo call is made for a dex registered contract, we will charge gas for it from the contract's rent. dex will not process a contract whose rent drops to 0, since any processing involves sudo calls.

Testing performed to validate your change

unit tests
tested on local set

@codchen codchen requested a review from LCyson November 3, 2022 05:30
@codchen codchen force-pushed the tony-chen-charge-gas branch from e0a9767 to 17a5d20 Compare November 7, 2022 07:37
@codchen codchen force-pushed the tony-chen-charge-gas branch from 17a5d20 to 4a4e938 Compare November 14, 2022 07:20
@codchen codchen merged commit f9a21a5 into master Nov 14, 2022
philipsu522 pushed a commit that referenced this pull request Nov 14, 2022
* Charge gas from contract rent for sudo calls

* lint

* whitelist contract info key

* rebase
@masih masih deleted the tony-chen-charge-gas branch October 31, 2025 15:52
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

Successfully merging this pull request may close these issues.

2 participants