Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add fee manager for erc-to-erc bridge in POSDAO chain #166
Add fee manager for erc-to-erc bridge in POSDAO chain #166
Changes from 15 commits
04ab82f
4cfb617
96d75f2
0092b10
bf2222d
88a503b
5400cd9
4def1fd
0ae69e6
05d5a2b
2bc4bd7
16be3f8
cf81b76
95f2362
63fbd12
8ab76b9
851c0b9
1ca930a
d5c7c5a
3592024
6b25ffb
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
in common case the
erc20-to-erc20
bridge mode does not require the block reward contract. Reward could be assigned directly by the fee manager. So, I think, we need to have a separate contract likePOSDAOHomeBridgeErcToErc
which will extendHomeBridgeErcToErc
and redefinerewardableInitialize()
method with another set of parameters, this contract will also containblockRewardContract()
andsetBlockRewardContract()
.Another idea is that
blockRewardContract
andsetBlockRewardContract
should be implemented in the fee manager since they are related to the fee distribution functionality. In this case the bridge contract should proxy calls to the fee manager contract.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.
Added
POSDAOHomeBridgeErcToErc
here 8ab76b9.I implemented this approach, it makes sense to manage blockReward logic on fee manager since it is related to this contract functionality.
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.
We don't need these event anymore after #176
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.
Thanks! Updated logic here 6b25ffb
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.
We don't need these event anymore after #176