Skip to content

Tracer bullet#29

Merged
nialexsan merged 99 commits intomainfrom
tracer-bullet
Jul 15, 2025
Merged

Tracer bullet#29
nialexsan merged 99 commits intomainfrom
tracer-bullet

Conversation

@nialexsan
Copy link
Copy Markdown
Contributor

No description provided.

kgrgpg and others added 30 commits June 4, 2025 19:10
- TidalProtocol: 100% restoration of Dieter's AlpenFlow functionality
  - Oracle-based pricing and health calculations
  - Deposit rate limiting and position queues
  - Advanced health management functions
  - Async position updates
- MOET: Mock stablecoin for multi-token testing
- TidalPoolGovernance: Role-based governance system
- AlpenFlow_dete_original: Reference implementation

Note: Old tests removed as they're incompatible with new contracts.
Updated tests coming in follow-up PR.

No breaking changes. Foundation for multi-token lending protocol.
* feat: Restore AlpenFlow implementation with supporting contracts

- TidalProtocol: 100% restoration of Dieter's AlpenFlow functionality
  - Oracle-based pricing and health calculations
  - Deposit rate limiting and position queues
  - Advanced health management functions
  - Async position updates
- MOET: Mock stablecoin for multi-token testing
- TidalPoolGovernance: Role-based governance system
- AlpenFlow_dete_original: Reference implementation

Note: Old tests removed as they're incompatible with new contracts.
Updated tests coming in follow-up PR.

No breaking changes. Foundation for multi-token lending protocol.

* fix: Add MOET and TidalPoolGovernance to flow.json for deployment

* remove DeFiBlocks interface definitions from TidalProtocol contract

* update InternalPosition.topUpSource to value field from reference

* fix PriceOracle conformance .price() calls

* Update cadence/contracts/TidalProtocol.cdc

* Assign TokenState.lastUpdate as current block timestamp on init

* update error message

* remove TidalGovernance contract

---------

Co-authored-by: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com>
sisyphusSmiling and others added 26 commits July 8, 2025 18:49
fix requiredEffectiveDebt calculation
[WIP] Add tests covering Pool calculations and fixes for tracer bullet paths
* adjust availableDebtIncrease calculation

* Move edgecase handling logic up
…low (#26)

- Changed interestMul division from e8 to 10^9 to match 18-decimal indices
- Fixed missing division by targetHealth in fundsRequiredForTargetHealthAfterWithdrawing
- Added underflow protection when subtracting debt values
Co-authored-by: sisyphusSmiling <giovannisanchez@WORK-Gios-MacBook-Pro.local>
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 15, 2025

Codecov Report

Attention: Patch coverage is 69.06077% with 56 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@c96c25a). Learn more about missing BASE report.

Files with missing lines Patch % Lines
cadence/contracts/mocks/MockYieldToken.cdc 51.02% 24 Missing ⚠️
cadence/contracts/MOET.cdc 63.26% 18 Missing ⚠️
cadence/contracts/mocks/MockOracle.cdc 40.00% 12 Missing ⚠️
cadence/contracts/TidalProtocolUtils.cdc 98.27% 1 Missing ⚠️
...ence/contracts/mocks/MockTidalProtocolConsumer.cdc 80.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #29   +/-   ##
=======================================
  Coverage        ?   69.69%           
=======================================
  Files           ?        6           
  Lines           ?      759           
  Branches        ?        0           
=======================================
  Hits            ?      529           
  Misses          ?      230           
  Partials        ?        0           
Flag Coverage Δ
unittests 69.69% <69.06%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sisyphusSmiling sisyphusSmiling self-requested a review July 15, 2025 17:46
@nialexsan nialexsan merged commit bb80c66 into main Jul 15, 2025
3 checks passed
@nialexsan nialexsan deleted the tracer-bullet branch July 15, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants