-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor: rewards #219
refactor: rewards #219
Conversation
Refactored rewards v1 and v2, then finalized gas estimation on rewards v2
|
commit: |
const { hubAddress: rewardsV1Address } = hubChain.rewardsV1; | ||
const rewardsV1Address = hubChain.rewards[REWARDS_TYPE.V1].hubAddress; |
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.
const rewardsV1Address = getHubRewardAddress(network, REWARDS_TYPE.V1);
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.
here we already have the hubChain
, we should pass another param (network
) just to be able to call that method
const { hubAddress: rewardsV1Address } = hubChain.rewardsV1; | ||
const rewardsV1Address = hubChain.rewards[REWARDS_TYPE.V1].hubAddress; |
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.
const rewardsV1Address = getHubRewardAddress(network, REWARDS_TYPE.V1);
const { hubAddress: rewardsV2Address } = hubChain.rewardsV2; | ||
const rewardsV2Address = hubChain.rewards[REWARDS_TYPE.V2].hubAddress; |
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.
const rewardsV2Address = getHubRewardAddress(network, REWARDS_TYPE.V2);
Refactored rewards v1 and v2, then finalized gas estimation on rewards v2