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

KIP-3: Fix SDK-related packages #428

Open
wants to merge 33 commits into
base: KIP-3
Choose a base branch
from

Conversation

arthurka-o
Copy link
Contributor

@arthurka-o arthurka-o commented Oct 1, 2023

@arthurka-o arthurka-o marked this pull request as ready for review October 1, 2023 19:22
@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2023

Codecov Report

All modified lines are covered by tests ✅

❗ No coverage uploaded for pull request base (KIP-3@cfc6167). Click here to learn what that means.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             KIP-3    #428   +/-   ##
=======================================
  Coverage         ?   0.00%           
=======================================
  Files            ?      36           
  Lines            ?    2332           
  Branches         ?     264           
=======================================
  Hits             ?       0           
  Misses           ?    2332           
  Partials         ?       0           
Flag Coverage Δ
smart-contract-tests 0.00% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Arthur Galiullin added 11 commits October 5, 2023 09:35
`stakingAdmin`, `assetsStaked`, and
`onlyStakingAdmin` were not used
anywhere, so I removed them also.
Missed this in KIP-6, removing now
In this function, we calculate the treasury share
in percents (1 - `kickbackRate`).
Then, if the depositor gains are not zero, we send
Asset and KUSD to the treasury address, and
update pool balances.
By multiplying the gain amount by the kickback rate
and dividing by `DECIMAL_PRECISION`, we get the
amount of gain that depositors get minus treasury
fee.
For every function that sends gains to somewhere,
be it the depositor's trove or depositor's wallet,
now we send a part of the gains to the KUMO
treasury.
@arthurka-o arthurka-o force-pushed the KIP-3-fix-SDK-related-packages branch from 2f94852 to d68aa9a Compare October 5, 2023 07:35
Arthur Galiullin added 8 commits October 5, 2023 09:47
Also, modify some functions and interfaces.
Code that depended on those will be fixed
in the following commits.

`totalStabilityPoolKUMOReward` and
`liquidityMiningKUMORewardRate` are
deleted as a part of KUMO Token removal.
One variable and series of `KUMO Token`-related functions
Remove series of `KUMO Token`-related functions
@arthurka-o arthurka-o force-pushed the KIP-3-fix-SDK-related-packages branch from d68aa9a to f495d02 Compare October 5, 2023 07:48
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.

2 participants