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

Send rewards into l2 #818

Merged
merged 19 commits into from Nov 5, 2020
Merged

Send rewards into l2 #818

merged 19 commits into from Nov 5, 2020

Conversation

jjgonecrypto
Copy link
Contributor

Also updates SynthetixBridgeToOptimism to use new smockit testing library

@@ -120,9 +141,28 @@ contract SynthetixBridgeToOptimism is Owned, MixinResolver, ISynthetixBridgeToOp
emit BridgeMigrated(address(this), newBridge, contractBalance);
}

// invoked by RewardsDistribution on L1 (takes SNX)
function notifyRewardAmount(uint256 reward) external {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that notifyRewardAmount() and rewardDeposit() can be combined and merged

@jjgonecrypto jjgonecrypto marked this pull request as ready for review November 4, 2020 21:11
@codecov
Copy link

codecov bot commented Nov 5, 2020

Codecov Report

Merging #818 into develop will decrease coverage by 0.46%.
The diff coverage is 69.64%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #818      +/-   ##
===========================================
- Coverage    98.40%   97.94%   -0.47%     
===========================================
  Files           59       59              
  Lines         3954     3990      +36     
  Branches       513      514       +1     
===========================================
+ Hits          3891     3908      +17     
- Misses          63       82      +19     
Impacted Files Coverage Δ
contracts/SynthetixBridgeToBase.sol 48.00% <21.42%> (-52.00%) ⬇️
contracts/SynthetixBridgeToOptimism.sol 74.46% <75.00%> (-18.87%) ⬇️
contracts/MintableSynthetix.sol 100.00% <100.00%> (ø)
contracts/Synthetix.sol 100.00% <100.00%> (+3.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e32447f...feb856c. Read the comment docs.

@i-stam i-stam self-requested a review November 5, 2020 17:39
@i-stam i-stam merged commit ceebf48 into develop Nov 5, 2020
@i-stam i-stam deleted the send-rewards-into-l2 branch November 11, 2020 13:42
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.

None yet

2 participants