Skip to content

Add TidalProtocolUtils contract containing math utils & initial test#22

Merged
sisyphusSmiling merged 1 commit intotracer-bulletfrom
gio/add-uint-lib
Jul 15, 2025
Merged

Add TidalProtocolUtils contract containing math utils & initial test#22
sisyphusSmiling merged 1 commit intotracer-bulletfrom
gio/add-uint-lib

Conversation

@sisyphusSmiling
Copy link
Copy Markdown
Contributor

@sisyphusSmiling sisyphusSmiling commented Jul 9, 2025

Description

The contents of this PR are ported from FlowEVMBridgeUtils including the new TidalProtocolUtils as well as conversion tests. These are included in anticipation of subsequent changes addressing insufficient decimal precision served by UFix64 in the TidalProtocol contract.

@sisyphusSmiling sisyphusSmiling marked this pull request as ready for review July 9, 2025 23:23
Copy link
Copy Markdown
Contributor

@joshuahannan joshuahannan left a comment

Choose a reason for hiding this comment

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

why not just use the ones that are already deployed for the bridge?

@sisyphusSmiling
Copy link
Copy Markdown
Contributor Author

@joshuahannan initially, I was hoping to avoid adding new dependencies to simplify developing on the hosted emulator environment. But as we continued in #25, we ended up including quite a few more TidalProtocol-specific methods. IMO omitting the vm bridge utils & its dependencies simplifies dev-ex around TidalProtocol.

@sisyphusSmiling sisyphusSmiling merged commit 3923e60 into tracer-bullet Jul 15, 2025
1 check passed
@sisyphusSmiling sisyphusSmiling deleted the gio/add-uint-lib branch July 15, 2025 00:22
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