-
Notifications
You must be signed in to change notification settings - Fork 62
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
Gas based keeper rewards #1890
Gas based keeper rewards #1890
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hope the comments make sense. hmu in the AM with any q's. we're very close! great work on this
markets/perps-market/contracts/storage/PerpsMarketConfiguration.sol
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple changes; pre-approving. awesome work on this
Closing in favor of #1904 |
The objective of this PR is to get the cost of a transaction based on gas price. It is used to dynamically calculate the keeper rewards for settlement, flag and liquidate, and to calculate the required margin to pay the keeper upon liquidation.
It makes use of a node that gets a transaction cost based on current gas price, and then the keeper rewards are added to the cost.
Detailed TODO list: