Skip to content

New Incentives Contract#160

Open
songwongtp wants to merge 5 commits intomainfrom
new-incentives
Open

New Incentives Contract#160
songwongtp wants to merge 5 commits intomainfrom
new-incentives

Conversation

@songwongtp
Copy link
Contributor

  • split functionality of incentives contract into 2 contracts
  • Proxy contains functions regarding to rebalance and arbitrage
  • Incentives now contains only reward contribution logic. Also rebalance contribution now is only recorded when reward incurs, i.e. penalty > 0

@codecov
Copy link

codecov bot commented Apr 27, 2022

Codecov Report

Merging #160 (baa5b30) into main (c24615f) will increase coverage by 0.13%.
The diff coverage is 99.01%.

@@            Coverage Diff             @@
##             main     #160      +/-   ##
==========================================
+ Coverage   96.98%   97.12%   +0.13%     
==========================================
  Files          36       40       +4     
  Lines        3384     3443      +59     
==========================================
+ Hits         3282     3344      +62     
+ Misses        102       99       -3     
Impacted Files Coverage Δ
contracts/nebula-incentives/src/state.rs 97.10% <ø> (ø)
contracts/nebula-incentives/src/query.rs 95.74% <95.74%> (ø)
contracts/nebula-incentives/src/handle_records.rs 98.46% <98.46%> (ø)
contracts/nebula-incentives/src/contract.rs 100.00% <100.00%> (+1.25%) ⬆️
contracts/nebula-incentives/src/handle_rewards.rs 96.82% <100.00%> (ø)
contracts/nebula-proxy/src/arbitrageurs.rs 98.24% <100.00%> (ø)
contracts/nebula-proxy/src/contract.rs 100.00% <100.00%> (ø)
contracts/nebula-proxy/src/rebalancers.rs 97.05% <100.00%> (ø)
contracts/nebula-proxy/src/state.rs 100.00% <100.00%> (ø)

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 c24615f...baa5b30. Read the comment docs.

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.

1 participant