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

add getTimestamp to MockLPMath.sol #1026

Closed sentilesdal closed 2 months ago

sentilesdal commented 2 months ago

Description

This just makes it easy for the rust tests to crab the current time.

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]]

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 9084043839

Details


Totals Coverage Status
Change from base Build 9082782840: 0.0%
Covered Lines: 1834
Relevant Lines: 1963

💛 - Coveralls
github-actions[bot] commented 2 months ago

Hyperdrive Gas Benchmark

Benchmark suite Current: a1438fc2b6d92e4a17c66959c52251070c60d58a Previous: a98362d1ead7c068957d1bdcfed9c6d7b0c7e4e8 Deviation Status
addLiquidity: min 33827 gas 33827 gas 0% 🟰
addLiquidity: avg 156823 gas 156586 gas 0.1514% 🚨
addLiquidity: max 428173 gas 428173 gas 0% 🟰
checkpoint: min 40292 gas 40292 gas 0% 🟰
checkpoint: avg 142305 gas 142307 gas -0.0014%
checkpoint: max 253424 gas 253424 gas 0% 🟰
closeLong: min 31361 gas 31361 gas 0% 🟰
closeLong: avg 134638 gas 134588 gas 0.0372% 🚨
closeLong: max 2625796 gas 2625796 gas 0% 🟰
closeShort: min 31349 gas 31349 gas 0% 🟰
closeShort: avg 130995 gas 131061 gas -0.0504%
closeShort: max 259737 gas 262372 gas -1.0043%
initialize: min 31371 gas 31371 gas 0% 🟰
initialize: avg 329906 gas 330036 gas -0.0394%
initialize: max 396015 gas 396015 gas 0% 🟰
openLong: min 33370 gas 33370 gas 0% 🟰
openLong: avg 172527 gas 172540 gas -0.0075%
openLong: max 306039 gas 306039 gas 0% 🟰
openShort: min 33936 gas 33936 gas 0% 🟰
openShort: avg 167840 gas 167571 gas 0.1605% 🚨
openShort: max 414992 gas 414992 gas 0% 🟰
redeemWithdrawalShares: min 31251 gas 31251 gas 0% 🟰
redeemWithdrawalShares: avg 73994 gas 73794 gas 0.2710% 🚨
redeemWithdrawalShares: max 209214 gas 209214 gas 0% 🟰
removeLiquidity: min 31301 gas 31301 gas 0% 🟰
removeLiquidity: avg 208684 gas 209011 gas -0.1565%
removeLiquidity: max 403026 gas 403038 gas -0.0030%

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