Merged
Conversation
- 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.
…pulling from topUpSource
…lization rebalancing
* 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>
fix requiredEffectiveDebt calculation
align logs
[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>
Refactor decimal precision
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #29 +/- ##
=======================================
Coverage ? 69.69%
=======================================
Files ? 6
Lines ? 759
Branches ? 0
=======================================
Hits ? 529
Misses ? 230
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.