Skip to content
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

GasToken Integration #170

Open
gakonst opened this issue Nov 19, 2018 · 0 comments
Open

GasToken Integration #170

gakonst opened this issue Nov 19, 2018 · 0 comments

Comments

@gakonst
Copy link
Contributor

gakonst commented Nov 19, 2018

Use https://github.com/projectchicago/gastoken/tree/master/contract mint/burn to mint gastoken during low periods, store it in the contract, and allow the operator to make cheap (free) submitBlock calls

https://github.com/projectchicago/gastoken/blob/master/contract/GST1.sol#L97

https://blog.polymath.network/turning-smart-contracts-into-gastoken-factories-3e947f664e8b

Add mint, freeStorage function. freeStorage will be called in SubmitBlock to pay for gas. Add test which shows that the gas cost of SubmitBlock was 0.

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

No branches or pull requests

1 participant