Skip to content

Instantly share code, notes, and snippets.

View dapp-whisperer's full-sized avatar
🌲
Building

dapp-whisperer

🌲
Building
View GitHub Profile
@dapp-whisperer
dapp-whisperer / scope.md
Last active February 9, 2024 17:12
Boosted Bounty Scope

See C4 docs: https://github.com/code-423n4/2023-10-badger

New Scope

github.com/AlDanial/cloc v 1.98  T=0.02 s (1650.5 files/s, 388869.2 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Solidity                        36           1311           1851           5320
-------------------------------------------------------------------------------
repayDebt(uint256,uint256): passing
adjustCdp(uint256,uint256,uint256,bool): passing
redeemCollateral(uint256,uint256,uint256,uint256): passing
flashLoanColl(uint256): passing
redeemCollateral(uint256,bytes32,uint256,bool,bool,uint256,uint256): passing
liquidate(uint256): failed!💥  
  Call sequence:
    openCdp(212200685215347397766310584329604553577190997626160748290153220,1026)
    openCdp(1572732164589264576962715128844644709604112444942892793695,1009)
@dapp-whisperer
dapp-whisperer / lrsUint128-2.md
Last active January 30, 2024 01:16
feat/lrsUint128-invariant-failures 2
[2024-01-27 18:11:06.42] [status] tests: 1/18, fuzzing: 600150/600000, values: [], cov: 72020, corpus: 83
repayDebt(uint256,uint256): passing
adjustCdp(uint256,uint256,uint256,bool): passing
redeemCollateral(uint256,uint256,uint256,uint256): passing
flashLoanColl(uint256): passing
redeemCollateral(uint256,bytes32,uint256,bool,bool,uint256,uint256): passing
liquidate(uint256): passing
closeCdp(uint256): passing
withdrawColl(uint256,uint256): passing
@dapp-whisperer
dapp-whisperer / lrsUint128-1.md
Last active January 30, 2024 01:15
feat/lrsUint128-invariant-failures failure 1
[2024-01-28 22:02:56.98] [Worker 0] Test limit reached. Stopping.
[2024-01-28 22:02:56.98] [status] tests: 1/18, fuzzing: 600063/600000, values: [], cov: 72017, corpus: 75
repayDebt(uint256,uint256): passing
adjustCdp(uint256,uint256,uint256,bool): passing
redeemCollateral(uint256,uint256,uint256,uint256): passing
flashLoanColl(uint256): passing
redeemCollateral(uint256,bytes32,uint256,bool,bool,uint256,uint256): passing
liquidate(uint256): passing
closeCdp(uint256): passing
@dapp-whisperer
dapp-whisperer / no-array-index-gas-report.md
Created January 18, 2024 15:24
Gas Report: ArrayIndex + CdpIds Removed
contracts/ActivePool.sol:ActivePool contract
Deployment Cost Deployment Size
2343272 12500
Function Name min avg median max # calls
MAX_BPS 349 349 349 349 1
MAX_FEE_BPS 240 240 240 240 1
PERIOD 329 329 329 329 19
allocateSystemCollSharesToFeeRecipient 3329 11080 3329 28029 225
claimFeeRecipientCollShares 13241 33232 29123 573
@dapp-whisperer
dapp-whisperer / PROPERTIES.md
Created October 6, 2023 14:55
eBTC Specification

Properties

List of properties of the eBTC protocol, following the categorization by Certora:

  • Valid States
  • State Transitions
  • Variable Transitions
  • High-Level Properties
  • Unit Tests

Keybase proof

I hereby claim:

  • I am dapp-whisperer on github.
  • I am dapp_whisperer (https://keybase.io/dapp_whisperer) on keybase.
  • I have a public key ASCyhXaG9rl6X9SJYHcwuEktMiTcJjjE81L-Po0mkOTaHwo

To claim this, I am signing this object: