v1.1.0-beta Spearbit Audit Fixes
What's Changed
- Alex/prototype by @Alexangelj in #1
- clean(remove-contracts): removes prototype contract and related tests by @Alexangelj in #2
- Fix/old comments by @Alexangelj in #3
- fix(critical-process): returns pool id in create pool instruction by @Alexangelj in #4
- Env/foundry by @Alexangelj in #6
- Upgrade/enigma by @Alexangelj in #10
- Act/2 by @clemlak in #11
- Develop by @Alexangelj in #34
- Mvp/test framework by @Alexangelj in #39
- Framework/restructure contracts by @Alexangelj in #41
- Feat/price data structs by @Alexangelj in #44
- Feat/liquidity prototype by @Alexangelj in #48
- Feat/remove liq data classes by @Alexangelj in #49
- swap(mvp-rough): very rough swap mvp that loops over an order until filled by @Alexangelj in #51
- fix(liquidity-deltas): adds logic to update liquidity deltas and tests by @Alexangelj in #52
- Feat/swap improvements by @Alexangelj in #53
- fix(prototype): cleans up prototype and moves fn to appropriate files by @Alexangelj in #54
- Clean/final by @Alexangelj in #56
- Feat/typescript test sdk by @Alexangelj in #57
- Update HyperPositions by @sam-iamm in #58
- Feat/staking by @sam-iamm in #60
- feat(priority): add priority gamma to curve, priority swapper to pool by @sam-iamm in #61
- Feat/fees by @sam-iamm in #62
- feat(epoch-staking): first attempt epoch-based accounting by @sam-iamm in #63
- Fix/project cleanup by @Alexangelj in #64
- Feat/native eth [Merge fix project cleanup branch first] by @Alexangelj in #65
- Fix/testing refactor [Merge after feat/native-eth] by @Alexangelj in #66
- Feat/priority auction by @sam-iamm in #72
- Clean/file test infra by @Alexangelj in #74
- refactor(events): updates events to match Hyper event spec by @Alexangelj in #77
- Rmm prototype v0.0.1 by @Alexangelj in #120
- Prototype v0.0.1 by @Alexangelj in #121
- Prototype feedback by @Alexangelj in #122
- Beta/swap lib by @Alexangelj in #123
- Beta/prep by @Alexangelj in #125
- invariant testing by @Alexangelj in #126
- Swap update by @Alexangelj in #128
- Beta/simplify refactor by @Alexangelj in #129
- Audit/jan cleanup by @Alexangelj in #130
- Audit/testing cleanup by @Alexangelj in #131
- Audit/more testing by @Alexangelj in #132
- beta-v0.0.1 by @Alexangelj in #127
- Fix/version func by @Alexangelj in #133
- Fix/hardhat by @Alexangelj in #135
- Test/change params swaps by @Alexangelj in #134
- Echidna Setup by @0xicingdeath in #141
- test(gas): adds gas and analysis tests by @Alexangelj in #142
- Test/better swap by @Alexangelj in #146
- Tob/echidna by @Alexangelj in #147
- Swap changes by @Alexangelj in #148
- Tob/echidna by @Alexangelj in #150
- TOB-HYPR-3 (Fix/add signed delta) by @clemlak in #151
- Fixes for isses from weeks 1-2 by @Alexangelj in #149
- Trail of Bits Audit - Fixes weeks 1-2 by @Alexangelj in #136
- bump(version): beta-v0.1.0 by @Alexangelj in #153
- Tob/echidna swap refactor by @0xicingdeath in #156
- fix(#161): removes hardhat config and deps by @Alexangelj in #162
- fix(#140): closes #140 by making allocate and swap payable by @Alexangelj in #170
- Echidna/more swap invariants by @Alexangelj in #169
- fix(#139): removes staking, priority fee still wip by @Alexangelj in #163
- Feat/ci workflows by @Alexangelj in #180
- Feat/create pair external by @clemlak in #192
- Feat/create pool external by @clemlak in #190
- Feat/bye dead code by @clemlak in #193
- Beta/pool state changes by @Alexangelj in #182
- TOB-HYPR Week 3 Fixes by @Alexangelj in #179
- fix(#174,#194): removes curve parameters from changePoolParameters by @Alexangelj in #197
- fix(#137): changes priorityFeeGrowth to invariantGrowth, removes from… by @Alexangelj in #198
- Fix/update echidna tests by @clemlak in #203
- Echidna E2E by @0xicingdeath in #178
- Alex/fix natspec branch by @Alexangelj in #207
- docs(action-natspec): updates the HyperActions natspec by @Alexangelj in #215
- Alex/generalized rmms by @Alexangelj in #226
- fix: remove dangerousTransferEther by @clemlak in #230
- Fix/min amount out by @clemlak in #229
- build(solstat): updates to solstat v1.0.0-beta by @Alexangelj in #233
- Spurious dragon battle by @Alexangelj in #237
- chore(echidna): moves echidna test suite outside of contracts tempora… by @Alexangelj in #238
- Feat/enigma changes by @clemlak in #242
- 1.0.0/invariant test suite by @Alexangelj in #243
- chore(v1.0.0-beta): updates version in contract and package.json by @Alexangelj in #241
- refactor(rename): hyper -> portfolio by @Alexangelj in #244
- Tidy/natspec by @Alexangelj in #245
- 1.0.0/final cleanup by @Alexangelj in #247
- fix(engima): updates TestEngima to TestFVM by @Alexangelj in #248
- 1.0.0 beta by @Alexangelj in #228
- Fix/final fixes by @Alexangelj in #249
- fix(readme): updates yellow paper link in readme by @Alexangelj in #250
- docs(contribution-guidelines): updates readme with contributing/makin… by @Alexangelj in #251
- Feat/mega by @clemlak in #262
- chore: add gas snapshot by @TomAFrench in #252
- chore: remove repeated ternary conditions when initialising
_state
by @TomAFrench in #259 - Remove special handling for zero delta by @TomAFrench in #263
- feat: use branchless versions of min/max functions by @TomAFrench in #253
- feat: pack
PortfolioPosition
struct by @TomAFrench in #254 - chore: avoid unnecessary checks when performing settlement by @TomAFrench in #255
- Update README.md by @pranavpatilsce in #266
- chore: remove checks on timestamp maths by @TomAFrench in #258
- feat: pack
SwapState
struct by @TomAFrench in #260 - chore: use constant for fee denominator by @TomAFrench in #257
- feat: reduce bytecode by removing unnecessary return values by @TomAFrench in #265
- Chore/fmt by @Alexangelj in #275
- refactor(pool-nonce): updates pool nonce to be a mapping from pair nonce by @Alexangelj in #272
- Refactor/jump encoding by @Alexangelj in #276
- fix(settlement): adds sanity check at end of settlement by @Alexangelj in #278
- refactor(jump-processing): simplifies the jump encoding! much better by @Alexangelj in #282
- fix(via-ir): comments tests that broke via ir pipeline by @Alexangelj in #284
- fix(invariant-tests): updates createActor modifier to not set the actor by @Alexangelj in #285
- chore(ci): updates ci to skip test files on optimized build by @Alexangelj in #288
- Massive testing by @Alexangelj in #287
- Feat/improv decoding by @clemlak in #292
- Spearbit Release Changes / Fixes by @Alexangelj in #289
- Final changes for Spearbit audit final task list by @Alexangelj in #296
- feat(gas-study-v1.0.0): adds a comprehensive gas test suite by @Alexangelj in #302
- Audit fix/pack by @clemlak in #303
- fix: remove useless shl by @clemlak in #306
- Audit fix/to bytes8/16 by @clemlak in #308
- Fees are now always reinvested (no more claim) by @clemlak in #320
- Audit fix/missing signextend by @clemlak in #319
- fix: wrong casting for _liquidityPolicy by @clemlak in #310
- Audit fix/create pool nat spec by @clemlak in #311
- feat: remove unused AlreadySettled error by @clemlak in #313
- chore: explain the use of raw value vs const by @clemlak in #314
- chore: update cache function comment by @clemlak in #315
- feat: add InvalidPriorityFee error by @clemlak in #317
- Audit fix/gas optimizations by @clemlak in #309
- Audit fix/update get amount out by @clemlak in #312
- Audit fix/liquidity allocation by @clemlak in #307
- fix(sprbt-12): removes invariant scaling in RMM01Portfolio by @Alexangelj in #326
- fix(sprbt-23): removes dead code scaleFromWadUp by @Alexangelj in #327
- fix(sprbt-18): updates maturity to return type(uint32).max for perp pools by @Alexangelj in #328
- Audit fix/unsafe casting by @clemlak in #321
- Audit fix/inaccurate comments by @clemlak in #318
- chore(fmt): runs forge fmt on sol contracts by @Alexangelj in #332
- test(swap): adds swap fuzz tests by @Alexangelj in #341
- Spearbit Post Audit Fixes by @Alexangelj in #305
- fix(EncoderTarget): updates allocateOrDeallocate parameters by @Alexangelj in #344
- feat(v1.1.0-beta): new release, spearbit audit fixes by @Alexangelj in #345
- fix(comments): updates outdated comments by @Alexangelj in #348
- fix(min-vol): updates min vol param from 100 to 1 by @Alexangelj in #349
New Contributors
- @0xicingdeath made their first contribution in #141
- @TomAFrench made their first contribution in #252
- @pranavpatilsce made their first contribution in #266
Full Changelog: https://github.com/primitivefinance/portfolio/commits/v1.1.0-beta