Skip to content

initial refactor#28

Merged
nialexsan merged 19 commits intomainfrom
nialexsan/refactor-fund-available-rebased
Jul 18, 2025
Merged

initial refactor#28
nialexsan merged 19 commits intomainfrom
nialexsan/refactor-fund-available-rebased

Conversation

@nialexsan
Copy link
Copy Markdown
Contributor

refactored functions

@nialexsan nialexsan force-pushed the nialexsan/refactor-fund-available-rebased branch from 020382f to 3c3c06b Compare July 15, 2025 17:25
Base automatically changed from tracer-bullet to main July 15, 2025 18:15
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 15, 2025

Codecov Report

Attention: Patch coverage is 91.66667% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cadence/contracts/TidalProtocol.cdc 91.66% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@nialexsan nialexsan marked this pull request as ready for review July 15, 2025 19:45
@sisyphusSmiling
Copy link
Copy Markdown
Contributor

@nialexsan #27 and #28 look to include similar changes. Should they be stacked or should one of them be closed?

@nialexsan
Copy link
Copy Markdown
Contributor Author

@sisyphusSmiling yep, sorry, forgot to close the other one, after rebasing and trimming down all the changes

@nialexsan
Copy link
Copy Markdown
Contributor Author

the only difference is in this snippet:
https://github.com/onflow/TidalProtocol/pull/28/files#diff-3f2cb54f3109e2c85d4fb3a5d53e838c32bf0e8cdae7adaf41039a0846a914d9R947-R954
which seems to duplicate code below, after the conditional block

Comment thread cadence/contracts/TidalProtocol.cdc Outdated
Comment on lines +360 to +368
access(all) struct AdjustedBalances {
access(all) let collateral: UInt256
access(all) let debt: UInt256

init (collateral: UInt256, debt: UInt256) {
self.collateral = collateral
self.debt = debt
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we just use the BalanceSheet struct instead of creating a new object?

Comment thread cadence/contracts/TidalProtocol.cdc Outdated
* replace DeFiBlocks with DeFiActions submodule

* update all DeFiBlocks (DFB) references to DeFiActions (DFA)
Comment thread cadence/contracts/TidalProtocol.cdc Outdated
Comment thread cadence/contracts/TidalProtocol.cdc Outdated
Comment thread cadence/contracts/TidalProtocol.cdc
nialexsan and others added 2 commits July 18, 2025 09:28
Co-authored-by: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com>
@nialexsan nialexsan merged commit 88a89bc into main Jul 18, 2025
2 checks passed
@nialexsan nialexsan deleted the nialexsan/refactor-fund-available-rebased branch July 18, 2025 14:11
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.

2 participants