Skip to content

LP Friendly Update to Netting#568

Merged
jrhea merged 44 commits intomainfrom
infinite-chocolate
Aug 31, 2023
Merged

LP Friendly Update to Netting#568
jrhea merged 44 commits intomainfrom
infinite-chocolate

Conversation

@jrhea
Copy link
Copy Markdown
Contributor

@jrhea jrhea commented Aug 23, 2023

resolves #564
resolves #444
resolves #13
resolves #558
resolves #228
resolves #464
resolves #503
resolves #536

Link to updated netting description

@jrhea jrhea force-pushed the infinite-chocolate branch from dfefa4b to 704481e Compare August 24, 2023 01:02
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Aug 24, 2023

Coverage Status

coverage: 93.182% (-2.7%) from 95.894% when pulling d7aa80f on infinite-chocolate into 7ff8680 on main.

@jrhea jrhea force-pushed the infinite-chocolate branch from f6867b8 to 9b2ac37 Compare August 24, 2023 17:03
Comment thread contracts/src/libraries/SafeCast.sol Outdated
@jrhea jrhea force-pushed the infinite-chocolate branch from 60ca361 to d4f76f6 Compare August 24, 2023 21:35
Co-authored-by: Alex Towle <jalextowle@gmail.com>
@jrhea jrhea changed the title Infinite chocolate LP Friendly Update to Netting Aug 24, 2023
@jrhea jrhea marked this pull request as ready for review August 24, 2023 21:38
jrhea and others added 4 commits August 24, 2023 18:28
* implement new idle and solvency

* Implemented a rough draft of `get_max_long`

* Debugging

* Implemented a working `get_max_long` function in Rust

* Used `tracing_test::traced_test` to capture logs

* Added a configurable slippage parameter to the agent's `open_long`

* Addressed review feedback from @jrhea

---------

Co-authored-by: jonny rhea <jonathan.rhea@gmail.com>
@jrhea jrhea force-pushed the infinite-chocolate branch from e1bdd96 to a59d6c4 Compare August 28, 2023 18:18
@jrhea jrhea force-pushed the infinite-chocolate branch from 22b8a68 to 03ef31e Compare August 29, 2023 23:50
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 30, 2023

Hyperdrive Gas Benchmark

Benchmark suite Current: d7aa80f Previous: 662cc79 Deviation Status
addLiquidity: min 785 gas 763 gas 2.8834% 🚨
addLiquidity: avg 45722 gas 45342 gas 0.8381% 🚨
addLiquidity: max 80513 gas 80652 gas -0.1723%
checkpoint: min 514 gas 514 gas 0% 🟰
checkpoint: avg 29373 gas 29513 gas -0.4744%
checkpoint: max 82072 gas 83031 gas -1.1550%
closeLong: min 852 gas 852 gas 0% 🟰
closeLong: avg 21426 gas 21621 gas -0.9019%
closeLong: max 103569 gas 87560 gas 18.2835% 🚨
closeShort: min 765 gas 854 gas -10.4215%
closeShort: avg 22184 gas 22480 gas -1.3167%
closeShort: max 87273 gas 87914 gas -0.7291%
initialize: min 803 gas 803 gas 0% 🟰
initialize: avg 159501 gas 159736 gas -0.1471%
initialize: max 233222 gas 233501 gas -0.1195%
openLong: min 740 gas 740 gas 0% 🟰
openLong: avg 41329 gas 41238 gas 0.2207% 🚨
openLong: max 224365 gas 224074 gas 0.1299% 🚨
openShort: min 782 gas 760 gas 2.8947% 🚨
openShort: avg 48508 gas 47676 gas 1.7451% 🚨
openShort: max 218452 gas 217530 gas 0.4238% 🚨
removeLiquidity: min 762 gas 740 gas 2.9730% 🚨
removeLiquidity: avg 62715 gas 62451 gas 0.4227% 🚨
removeLiquidity: max 123039 gas 122749 gas 0.2363% 🚨

This comment was automatically generated by workflow using github-action-benchmark.

Copy link
Copy Markdown
Contributor

@jalextowle jalextowle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jrhea jrhea enabled auto-merge (squash) August 31, 2023 03:47
@jrhea jrhea merged commit 7cdd0f8 into main Aug 31, 2023
@jrhea jrhea deleted the infinite-chocolate branch August 31, 2023 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants