DA0-DA0 / dao-contracts

CosmWasm smart contracts for Interchain DAOs.
https://docs.daodao.zone
BSD 3-Clause "New" or "Revised" License
202 stars 133 forks source link

Augmented Bond Curves #697

Open JakeHartnell opened 1 year ago

JakeHartnell commented 1 year ago

ABCs are cool! This will try and implement much of what is in this excellent blog post.

To do:

Bonus:

bmorphism commented 1 year ago

doing G-d's work, Ser! 👏

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 56.01% and project coverage change: -2.34 :warning:

Comparison is base (0367c84) 93.97% compared to head (1ac6a88) 91.64%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #697 +/- ## =============================================== - Coverage 93.97% 91.64% -2.34% =============================================== Files 62 68 +6 Lines 5596 5962 +366 =============================================== + Hits 5259 5464 +205 - Misses 337 498 +161 ``` | [Impacted Files](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0) | Coverage Δ | | |---|---|---| | [contracts/external/cw-abc/src/queries.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvcXVlcmllcy5ycw==) | `31.42% <31.42%> (ø)` | | | [contracts/external/cw-abc/src/commands.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvY29tbWFuZHMucnM=) | `38.75% <38.75%> (ø)` | | | [contracts/external/cw-abc/src/abc.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvYWJjLnJz) | `47.14% <47.14%> (ø)` | | | [contracts/external/cw-abc/src/contract.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvY29udHJhY3QucnM=) | `65.00% <65.00%> (ø)` | | | [contracts/external/cw-abc/src/curves.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvY3VydmVzLnJz) | `100.00% <100.00%> (ø)` | | | [contracts/external/cw-abc/src/state.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvc3RhdGUucnM=) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] commented 8 months ago

Codecov Report

Attention: 519 lines in your changes are missing coverage. Please review.

Comparison is base (95e4f73) 96.25% compared to head (d10fff4) 94.85%. Report is 1 commits behind head on development.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #697 +/- ## =============================================== - Coverage 96.25% 94.85% -1.40% =============================================== Files 203 212 +9 Lines 50082 51289 +1207 =============================================== + Hits 48207 48651 +444 - Misses 1875 2638 +763 ``` | [Files](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0) | Coverage Δ | | |---|---|---| | [contracts/external/cw-abc/src/error.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvZXJyb3IucnM=) | `100.00% <100.00%> (ø)` | | | [contracts/external/cw-abc/src/testing.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvdGVzdGluZy5ycw==) | `100.00% <100.00%> (ø)` | | | [contracts/external/cw-abc/src/curves.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvY3VydmVzLnJz) | `99.53% <99.53%> (ø)` | | | [contracts/external/cw-abc/src/state.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvc3RhdGUucnM=) | `90.90% <90.90%> (ø)` | | | [contracts/external/cw-abc/src/msg.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvbXNnLnJz) | `0.00% <0.00%> (ø)` | | | [contracts/external/cw-abc/src/abc.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvYWJjLnJz) | `31.77% <31.77%> (ø)` | | | [contracts/external/cw-abc/src/queries.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvcXVlcmllcy5ycw==) | `0.00% <0.00%> (ø)` | | | [contracts/external/cw-abc/src/contract.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvY29udHJhY3QucnM=) | `23.46% <23.46%> (ø)` | | | [contracts/external/cw-abc/src/commands.rs](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0#diff-Y29udHJhY3RzL2V4dGVybmFsL2N3LWFiYy9zcmMvY29tbWFuZHMucnM=) | `28.72% <28.72%> (ø)` | | ... and [78 files with indirect coverage changes](https://app.codecov.io/gh/DA0-DA0/dao-contracts/pull/697/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DA0-DA0)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] commented 8 months ago

Welcome to Codecov :tada:

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered :open_umbrella:

codecov[bot] commented 7 months ago

Welcome to Codecov :tada:

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered :open_umbrella:

JakeHartnell commented 7 months ago

For the cw-curves package it may be worth looking and the Wynd DAO implementation: https://github.com/wynddao/wynddao/blob/main/packages/utils/src/curve.rs

Probably some useful stuff in there. Would be nice to have a solid curves package.