delvtech / hyperdrive

An automated market maker for fixed and variable yield with on-demand terms.
Apache License 2.0
25 stars 3 forks source link

Fixed the sDAI vault #1020

Closed jalextowle closed 2 months ago

jalextowle commented 2 months ago

Description

This PR cherry-picks some changes from the original deployment branch (jalextowle/testnet/deployment) that never made it into main. These changes ensure that sDAI has a stable share price when assets are minted.

Review Checklists

Please check each item before approving the pull request. While going through the checklist, it is recommended to leave comments on items that are referenced in the checklist to make sure that they are reviewed. If there are multiple reviewers, copy the checklists into sections titled ## [Reviewer Name]. If the PR doesn't touch Solidity and/or Rust, the corresponding checklist can be removed.

[[Reviewer Name]]

github-actions[bot] commented 2 months ago

Hyperdrive Gas Benchmark

Benchmark suite Current: 34de9b824f1d735eabfb5b48d6300567b866ec38 Previous: a55506bfa3b5371bf36b5678692fe30c8fbad4e2 Deviation Status
addLiquidity: min 33827 gas 33827 gas 0% 🟰
addLiquidity: avg 156244 gas 156018 gas 0.1449% 🚨
addLiquidity: max 428417 gas 428417 gas 0% 🟰
checkpoint: min 40292 gas 40292 gas 0% 🟰
checkpoint: avg 142299 gas 142331 gas -0.0225% ✅
checkpoint: max 253424 gas 253424 gas 0% 🟰
closeLong: min 31361 gas 31361 gas 0% 🟰
closeLong: avg 135423 gas 135337 gas 0.0635% 🚨
closeLong: max 2625796 gas 2625796 gas 0% 🟰
closeShort: min 31349 gas 31349 gas 0% 🟰
closeShort: avg 131699 gas 131610 gas 0.0676% 🚨
closeShort: max 262998 gas 262998 gas 0% 🟰
initialize: min 31371 gas 31371 gas 0% 🟰
initialize: avg 330278 gas 330372 gas -0.0285% ✅
initialize: max 396259 gas 396259 gas 0% 🟰
openLong: min 33370 gas 33370 gas 0% 🟰
openLong: avg 173222 gas 173373 gas -0.0871% ✅
openLong: max 306657 gas 306657 gas 0% 🟰
openShort: min 33936 gas 33936 gas 0% 🟰
openShort: avg 168351 gas 168009 gas 0.2036% 🚨
openShort: max 414524 gas 415307 gas -0.1885% ✅
redeemWithdrawalShares: min 31251 gas 31251 gas 0% 🟰
redeemWithdrawalShares: avg 74730 gas 74854 gas -0.1657% ✅
redeemWithdrawalShares: max 209828 gas 209828 gas 0% 🟰
removeLiquidity: min 31301 gas 31301 gas 0% 🟰
removeLiquidity: avg 208778 gas 208930 gas -0.0728% ✅
removeLiquidity: max 403640 gas 403652 gas -0.0030% ✅

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