Skip to content

feat(escrow): enforce max USD escrow value via oracle price feed - #359

Open
mysterio123865 wants to merge 2 commits into
Nullifier-Systems:mainfrom
mysterio123865:feat/oracle-usd-limit-334
Open

feat(escrow): enforce max USD escrow value via oracle price feed#359
mysterio123865 wants to merge 2 commits into
Nullifier-Systems:mainfrom
mysterio123865:feat/oracle-usd-limit-334

Conversation

@mysterio123865

Copy link
Copy Markdown
Contributor

Implements oracle-based USD value enforcement for escrow creation, preventing transactions from exceeding the configured maximum USD limit regardless of the asset being used.

What was implemented
Integrated an oracle price feed into the escrow contract to retrieve trusted asset-to-USD exchange rates.
Added USD-equivalent validation during escrow creation by converting the deposited asset amount using the oracle price.
Enforced the configured maximum USD transaction limit, rejecting escrow requests that exceed the allowed value.
Added support for multiple supported assets through the oracle conversion interface.
Ensured validation occurs before escrow creation to prevent oversized transactions from being locked on-chain.
Preserved existing escrow behavior for valid transactions while introducing the new value-limit enforcement.
Testing
Verified oracle-based USD conversion and maximum value enforcement.
Confirmed transactions within the configured limit succeed while transactions exceeding the limit are rejected.
Validated error handling for invalid or unavailable oracle pricing.
Ensured existing escrow functionality remains unaffected for compliant transactions.
Commit
Commit: b74435c
Message: feat(escrow): enforce max USD escrow value via oracle price feed

Closes #334

Add SEP-40-shaped oracle integration and admin-configurable USD limits so lock/commit reject oversized trades with ExceedsMaxUsdLimit (Closes Nullifier-Systems#334).

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

@mysterio123865 is attempting to deploy a commit to the jotelfootball-tech's projects Team on Vercel.

A member of the Team first needs to authorize it.

Resolve conflict in escrow Error enum and test modules by keeping
oracle USD limit variants and appending tranche-release errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

[HARD] Multi-Asset USD Oracle Rate Conversion in Soroban Escrow Contract

1 participant