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

docs: polishing and audit #46

Merged
merged 3 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ $$\text{minimum weight} \leq \text{weight} \leq \text{fee splitter cap}$$

- Upper bounded by whatever percentage cap the fee splitter has. (Controlled by the DAO)
- Lower bounded by the `minimum_weight` parameter in the rewards handler. (Controlled by any `RATE_MANAGER` appointed by the DAO, or the DAO itself)
- The weight can be adjusted using a `scaling_factor` if necessary. (Controlled by any `RATE_MANAGER` appointed by the DAO, or the DAO itself)


Furthermore, it can be adjusted at any time by any `RATE_MANAGER` by calling the `set_distribution_time` function in the rewards' handler to prevent manipulation (i.e. MEV on the snapshots).
206 changes: 0 additions & 206 deletions contracts/DepositLimitModule.vy

This file was deleted.

6 changes: 2 additions & 4 deletions contracts/StablecoinLens.vy
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ def _circulating_supply() -> uint256:
@dev This function sacrifices some gas to fetch peg keepers from a unique source
of truth to avoid having to manually maintain multiple lists across several
contracts. For this reason we read the list of peg keepers contained in the
monetary policy returned by a controller in the factory. factory -> weth
controller -> monetary policy -> peg keepers This function is not exposed as
external as it can be easily manipulated and should not be used by third party
contracts.
monetary policy returned by a controller in the factory.
factory -> weth controller -> monetary policy -> peg keepers
"""

circulating_supply: uint256 = 0
Expand Down
79 changes: 0 additions & 79 deletions tests/unitary/deposit_limit_module/test_available_deposit_limit.py

This file was deleted.

16 changes: 0 additions & 16 deletions tests/unitary/deposit_limit_module/test_internal_set_admin.py

This file was deleted.

17 changes: 0 additions & 17 deletions tests/unitary/deposit_limit_module/test_internal_set_controller.py

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading