Seconds per day - #1639
Merged
Merged
Seconds per day#1639
Conversation
|
@heymide is attempting to deploy a commit to the 1nonly's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@heymide Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
Author
|
Done, Close: #1639 |
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.
Close: #1588
Description
All compile errors in lib.rs are fixed. Here's the summary:
Fixed in lib.rs
Fix Details
Duplicate DataKey variants Removed second YieldPool, Paused, Attestations(u64)
Duplicate AttestationRecord struct Removed second copy (lines 212-218)
Duplicate MAX_PENALTY_BPS / SECONDS_PER_DAY Removed private const copies (lines 220-221) — pub const versions kept
Missing CreateCommitmentEventData Added struct definition
Missing Error variants Added AssetMismatch, InsufficientBalance, CommitmentViolated, InvalidWasmHash
Missing TTL constants Added ESTIMATED_LEDGER_SECONDS (5), TTL_MATURITY_BUFFER_LEDGERS (100)
Missing publish_commitment_event Added generic helper method
calculate_accrued_yield missing Self:: Fixed at line 465
perform_release double transfer Removed duplicate token transfer
resolve_dispute duplicate computation Removed redundant compute_refund_amount call, added missing penalty transfer
Test file (test.rs)
Has ~30 pre-existing errors from the same bad merge (API mismatches, missing assert_contract_event helper, outdated method signatures). That would need a separate pass to reconcile. cargo build --lib succeeds cleanly.
Closes #1588
Type of Change
Please delete options that are not relevant.
Checklist
Please review the Developer Guide before checking the items below:
DEVELOPER_GUIDE.md,README.md, or inline files).pnpm run test:coverageornpm run test:coverage).pnpm lintornpm run lint) and fixed all error diagnostics.Visual Changes (if applicable)
Please add screenshots, screen recordings, or GIFs showcasing the user interface changes.
Join the Discussion
Need help or want to chat? Join our CommitLabs Discord server.