Repository navigation
feat(contracts): add multi-asset payment support with decimal normalization - #1266
Merged
Chucks1093 merged 2 commits intoNov 25, 2026
Merged
Chucks1093 merged 2 commits into
Chucks1093 merged 2 commits into
Conversation
|
@itzsoftwaredevops-sys 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! 🚀 |
itzsoftwaredevops-sys
force-pushed
the
feat/multi-asset-payment
branch
from
November 23, 2026 12:52
a683d6d to
0456623
Compare
Member
✅ PR Ready for ReviewDue to a recent malware incident affecting our repositories, all PRs are required to pass automated security checks before being reviewed for merging. This PR has passed all automated checks:
Next step: Please share this PR link in our Telegram group so a maintainer can review and merge it: https://t.me/c/accesslayerorg/8514 |
itzsoftwaredevops-sys
force-pushed
the
feat/multi-asset-payment
branch
from
November 25, 2026 05:59
0456623 to
fc8f007
Compare
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.
Summary
emove_payment_asset(admin, token).
edeem_payment_asset\ even if an asset is deactivated.
Why
Trading was previously tied to a single payment asset, restricting market participation. This change introduces multi-asset payment allowlisting and decimal normalization so keys can be purchased with multiple tokens while protecting buyers from rate movement with \max_pay\ and protecting the protocol with staleness and rounding guards.
Implementation
Testing
\\ ext
cargo test -p creator-keys --lib test_issue_1259
running 7 tests
test test_issue_1259::test_decimal_normalization_conversions ... ok
test test_issue_1259::test_tokens_not_on_allowlist_are_rejected ... ok
test test_issue_1259::test_allowlist_management_and_views ... ok
test test_issue_1259::test_max_pay_protection_reverts_on_rate_movement ... ok
test test_issue_1259::test_removing_asset_blocks_new_buys_but_allows_reserve_redemption ... ok
test test_issue_1259::test_oracle_staleness_guard ... ok
test test_issue_1259::test_buy_with_6_7_and_18_decimal_tokens ... ok
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 531 filtered out; finished in 0.31s
\\
Scope / Risk
Issue
Closes #1259