Skip to content

Commit

Permalink
docs: polishing and audit (#46)
Browse files Browse the repository at this point in the history
* docs: mention `scaling_factor`

* docs: remove misleading documentation

* chore: remove unused code
  • Loading branch information
AlbertoCentonze authored Nov 4, 2024
1 parent cb0217e commit 1bb64cf
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 489 deletions.
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

0 comments on commit 1bb64cf

Please sign in to comment.