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

Track prepaid amount and withdraw treasury #110

Merged
merged 10 commits into from
Sep 27, 2024
Merged

Track prepaid amount and withdraw treasury #110

merged 10 commits into from
Sep 27, 2024

Conversation

syntrust
Copy link
Contributor

@syntrust syntrust commented Sep 9, 2024

Addressing #54.

As discussed offline, we need a variable to track the total prepaid amount, and a withdrawal method to transfer the extra treasury as much as the fund meets the prepaid requirement.

The unit tests cover the case where the prepaid amount is capped when rewarding miners, which should be part of treasury.

@qzhodl qzhodl requested a review from ping-ke September 13, 2024 08:53
contracts/StorageContract.sol Outdated Show resolved Hide resolved
contracts/StorageContract.sol Outdated Show resolved Hide resolved
contracts/StorageContract.sol Show resolved Hide resolved
contracts/StorageContract.sol Show resolved Hide resolved
contracts/StorageContract.sol Outdated Show resolved Hide resolved
contracts/StorageContract.sol Outdated Show resolved Hide resolved
contracts/StorageContract.sol Outdated Show resolved Hide resolved
@syntrust syntrust requested review from qzhodl and ping-ke September 24, 2024 11:17
@qzhodl qzhodl mentioned this pull request Sep 26, 2024
@syntrust syntrust requested a review from qzhodl September 26, 2024 11:20
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.

3 participants