vault: finalize request_id event encoding and fix revenue pool logic#215
Closed
Kanasjnr wants to merge 2 commits intoCalloraOrg:mainfrom
Closed
vault: finalize request_id event encoding and fix revenue pool logic#215Kanasjnr wants to merge 2 commits intoCalloraOrg:mainfrom
Kanasjnr wants to merge 2 commits intoCalloraOrg:mainfrom
Conversation
|
@Kanasjnr 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
|
@greatest0fallt1me ready for review |
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.
Description
This PR addresses several critical issues in the
callora-vaultcontract, focusing on event schema consistencynand achieving 100% test coverage.Closes #115
Key Changes
deductevents. Whenrequest_idis not provided, an empty symbol ("") is now emitted as the third topic to ensure indexer stability.deductandbatch_deductto properly verify and transfer USDC to therevenue_pooladdress set during initialization. Previously, the contract was incorrectly looking for a settlement key that was not yet configured.StorageKeyenum across all functions, preventing runtime failures caused by inconsistent raw string keys.client.initcalls to match the new 7-argument signature.batch_deduct_events_contains_empty_request_idto verify the new event convention.deduct_exceeds_balance_panicsto ensure the balance check takes precedence over permission errors.IntoVal), legacy constants (META_KEY,ALLOWED_KEY), and redundant balance checks in thedepositfunction.README.mdand updatedEVENT_SCHEMA.mdandUPGRADE.mdwith the new event encoding standards.Verification Results
All 59 tests in the
callora-vaultsuite are passing: