Skip to content

v10 RC4 Prototech labs

Compare
Choose a tag to compare
@grandizzy grandizzy released this 24 Apr 05:51
· 134 commits to master since this release
a5e00c2

v0.10.0 Release Candidate 4

Audit fixes

  • Sherlock review (Pool): Apply penalty in case deposit is moved from LUP to below LUP (#665)
  • Sherlock review (RewardsManager): Update toBucket.lpsAtStakeTime instead of using the stale LPB. (#671 #684)
  • TOB-AJNA-3 (PoolInfoUtils): Incorrect inflator arithmetic in view functions (#685)
  • TOB-AJNA-5 (3rd party contracts) : Older versions of external libraries are used: Update OZ contracts library to 4.8.2 (#711)
  • TOB-AJNA-8 (Pool): Array lengths are not checked in LP allowance update functions (#725)
  • TOB-AJNA-4 (Pool): Reset interest rate if debtEma < 5% of depositEma and pool rate > 10% (#733)
  • TOB-AJNA-2 (Pool - FenwickTree): Global scalar (at index 8192) is never updated (#753)
  • TOB improvement (RewardsManager): UPDATE_CLAIM_REWARD state var should be constant (#729)
  • TOB improvement (RewardsManager): check for 0x address in RewardsManager constructor (#732)
  • TOB improvement (Pool PoolDeployer): Comments and reuse code (#736)
  • TOB improvement (Pool): Emit event when Flashloan taken (#731)

Bug fixes

  • Bug Fix (Pool): Gracefully revert when collateral pull (#670)
  • Bug Fix (Pool): Revert if encumbered collateral is calculated as zero for non zero debt (#673)
  • Bug Fix (Pool): HPB bankruptcy on settle (#675)
  • Bug Fix (Pool): Update lender deposit time only when non-zero lps are added (#674)
  • Bug Fix (Pool): Bucket take with tiny deposit (#676)
  • Bug fix (Pool): Mul before div consistency (#699)
  • Bug Fix (Pool): Fix settle with reserves and interest accrual roundings (#687)
  • Bug Fix (PositionManager): Ensure PositionManager.moveLiquidity accrues interest (#700)
  • Bug fix (Pool): Interest accrue at LUP vs HTP (#696)
  • Bug Fix (Pool): Use unscaled remaining amount when remove deposit (#714)
  • Bug Fix (PoolInfoUtils): Prevent DIV/0 revert calculating MOMP on a pool with no loans (#712)
  • Bug Fix (Pool): Fenwick Rounding Improvements (Invariant fix F3 F4) (#719)
  • Bug Fix (PoolFactory): Restrict Deployment of Matching Quote and Collateral tokens (#735)
  • Bug Fix (Pool): Mau overflow regression fix (fix for issue #724) (#726)
  • Bug Fix (Pool): Ensure pool debt doesn't exceed deposits when remove quote token (#738)
  • Bug Fix (ERC721Pool): Update rebalance tokenIds logic (#746)
  • Bug Fix (RewardsManager): (Oasis) Resolve DIV/0 unstaking in a burn epoch with no burn (#748)
  • Bug Fix (Pool): CT1-CT7 failure: collateral transfered out from bucket should never be larger than bucket collateral (#759)
  • Bug Fix (Pool): Fix kickWithDeposit overflow underflow (#754)
  • Bug Fix (Pool): Calculate t0Debt2ToCollateral ratio only for loans not in auction (#758)

Improvements

  • Gas improvement (Pool): Calculate reserve on the spot when needed (#688)
  • Gas improvement (RewardsManager): Calculate rewards outside bucket loop (#720)
  • Gas improvement (Pool): Do not try to settle with reserves if reserves is not positive (#740)
  • Gas improvement (Pool FenwickTree): Fenwick gas improvements (#761)
  • Code consistency (Pool): Introduce Maths.floorWdiv and floorWmul functions (#705)
  • Code consistency (PoolInfoUtils): Expose auction price and status (#721)
  • Code consistency (RewardsManager): update PositionManager.MoveLiquidity event to provide all necessary details (#734)
  • Code consistency (Pool): Libraries consistency: (#669)
  • Code consistency (Pool): Improve SettlerActions.settlePoolDebt function (#752)
  • Documentation improvement: Update diagrams (#749)
  • Documentation improvement: Fix forge docs (#750)
  • Documentation improvement(Pool): kickneutral price comments improvements (#664)
  • Documentation improvement (RewardsManager): IRewardsManagerOwnerActions.moveStakedLiquidity comments improvements (#666)
  • Documentation improvement (Pool): Pool contract code maintanence (#663)
  • Documentation improvement (Pool): Documented Net Interest Margin calculation (#683)
  • Tests Improvements: Unit test for pledging loan with huge collateral, effect on rates and EMAs (#667)
  • Tests Improvements: Brownie tests: remove ptp, change how borrow amount calculated, fix LP scaling bugs (#668)
  • Tests Improvements: EMA testing (#678)
  • Tests Improvements: Protocol invariants tests update (#672)
  • Tests Improvements: RewardsManager test refactor and cleanup (#718)