Repository navigation
Conversation
The static token config feeds the token pickers the browser apps build from this package, so a token added there is offered to every user. A backend that needs to resolve a token for its own routes can now register it in its process instead: it then resolves like a static token, on the fallback and after the discovered list loads, without entering those lists.
PAXG now exists on Base, where fees are a fraction of Ethereum's, but Squid cannot swap it there, so the generic routed flows would only fail on it. Pin the contract in the API process, keep those flows off it, and gate new quotes and discovery behind GOLD_ENABLED_DIRECTIONS (Pix) and GOLD_USDC_ENABLED_DIRECTIONS (native Base USDC). Both default empty, so quotes and the Base token listing stay as they are until the Gold flows land and a switch is set.
The API echoes a ramp's input amount with all 18 places of its DECIMAL(38,18) column. The delivery check parsed it at the source token's precision, so every Base buy and USDC sell was refused as a wrong delivery right after registration. The test fixture echoed the trimmed value, which hid it.
Nothing on the Base path cleared the saved order, so one failed, abandoned or expired order blocked that wallet on that device for good. A failed order, one still unstarted an hour after registration, and a permit order whose start window closed now leave the active slot and stay in the history with their code. A Pix buy past the window keeps its order, because the API can still start a paid QR.
The order kept the SDK callback's registering stage until the wallet prompt opened. A chain read that failed before that left an order the resume path refuses, although its registration and delivery had been checked.
The Base adapter called startRamp directly, so a response lost after the API had started the order showed the user an error. It now uses the same safe start as the Ethereum flows.
The adapter used viem's default Base transport, the public rate-limited endpoint, and the funding step polls it every five seconds. It now shares the app-scoped Privy client the balance reads already use.
Opening the flow with a saved order resumed it at once, which can open a wallet prompt for the old order and start it on approval. The resume step now shows what the saved order is and waits for the button. The browser fixture gains a resume path to check it.
In a Base build the Ethereum sell flow was capped at the Base balance, so a user holding gold only on Ethereum could not sell it.
Completed USDC operations were listed in reais, and the safety notes called the wallet an Ethereum wallet in a Base build.
Sale proceeds, late deposits and amounts under the minimum stay in the user's wallet, but the app showed that balance only on the funding step and offered no way to move it. The dashboard now shows it and opens Privy's wallet export. The app sends nothing itself: the embedded wallet holds no ETH for gas on Base.
The contract now names the payment method, the fee precision and the 18-decimal input echo, and the notes describe where leftover USDC goes and when a saved order is released.
A quote whose fees are shown in USDC rounded its total to 6 decimals, but each component came from the price feed's default of 8 for a non-fiat currency: zero fees read "0.00000000" and a network fee could carry two places the total had dropped. A client that checks USDC precision and the exact sum refused every such quote. The display fees are now converted at 6 decimals, so the components add up to the total. The fake converter in the tests does not round like the price feed, so the new test runs the real one against the fake rates.
The two Alfredpay matchers still matched a request that buys or sells PAXG on Base, so only the quote gate stood between such a request and a Squid route that cannot swap the token. Both now exclude it, and a test sweeps every currency and rail to show no generic flow matches.
A registered token took the price and logo of any discovered token with the same symbol, even at another address. It now keeps them only when both are the same contract, and a non-EVM network is refused instead of breaking later lookups.
Any payment method other than "usdc" selected the Pix switch, including a differently cased or unknown value. Only "pix" and "usdc" select a switch now; any other value lists no Gold route.
A permit order whose start window closed inside registration kept the slot while the message said a new order could start; it is now released there, as on resume. A start the API refuses after its window gets a Portuguese message, and the signed order stays until the hour rule. A Pix buy released by age says that a payment already made still completes it. Two tests pin what must never be released: a signed order past its window and a running order of any age. The security spec and README describe the release rules as they are.
The dashboard suggested paying the next purchase with USDC even when the USDC rail is off. The USDC read is also no longer awaited, so the gold balance and the sell button do not wait for it.
At the fixture's round ETH price the old 8-decimal components added up to the total as well, so only the precision check caught a regression. The test now prices ETH so the gas reserve has a tail beyond six decimals, and compares the sum exactly before checking precision.
The cleanup approvals of a ramp are presigned at consecutive ephemeral nonces. The handler skipped the approval of a token with no balance and then sent the next one, which could never be mined, so the worker retried that ramp forever and the later token stayed on the ephemeral. The handler now sends the approvals in nonce order up to the last token with a balance, pulls only tokens that have one, does not resend an approval an earlier run already mined, and reports one signed ahead of the ephemeral's nonce instead of broadcasting it. The Robinhood Chain handler shares the code.
A Pix buyer who paid after the start window and confirmed it in the app saw the API's English refusal, which says the order is invalid. The API still starts a paid Pix order by itself, so the app now says that and asks the buyer not to pay again. The "nothing moved" wording stays with signed permit orders only, and a test pins that split.
The Gold switch was picked from an object keyed by the query value, so a name every object inherits, such as "constructor", resolved to a function and the Base token listing answered with a 500. The value is now compared with the two rail names directly. The spec sentence about generic flows now says it covers flows that take new quotes; the retired EUR offramp from Base is left as it is.
When the approval of a Polygon cleanup was mined and the pull then failed, every later cycle sent the same approval again. The node rejected it for its used nonce, so the ramp's cleanup failed forever and kept one of the worker's slots. An approval whose nonce is already used is now skipped and only the pull is retried, as on Base.
Receipts on the simulated chain carried no event logs, so an executor that reads a transfer from a receipt had nothing to read. A plain ERC-20 transfer now reports its Transfer event, as a token does, and a test can script the logs of any other transaction, such as a swap's payout.
A pre- or post-swap top-up makes the ephemeral whole to its quoted target. It is now measured against the step that delivered the token: the presigned swap after a swap, or the deposit of an offramp made on the same network, together with the ephemeral's presigned fee transfers. The ephemeral must hold what those receipts left on it. If it holds less, nothing is sent and the ramp pauses for reconciliation, so the funding wallet pays what the swap or the deposit fell short by plus the quoted discount. The fee transfers are read from their receipts rather than derived from the quote, so rounding between the quoted fee and the transfers cannot pause an order. The quote-relative caps still apply afterwards. A deposit made directly on the top-up's network arrives in full, so the scenarios that topped one up now expect it to complete without a subsidy, and the paid pre-swap top-up and its cap are exercised on the bridged offramp instead.
Records the new fund-routing invariant and its audit entry, and tells the author of a flow which earlier transactions a top-up is measured against.
A provider mint records the amount it delivered, not a transaction. The pre-swap top-up that follows one is now measured against that amount: the provider's own figure for the transfer, stored with the ramp's mint ticket, on the BRL onramps, and the quoted mint amount on the Alfredpay onramps. The ephemeral must still hold it. If it holds less, nothing is sent and the ramp pauses for reconciliation, so the funding wallet pays what the mint fell short of the swap input plus the quoted discount. A top-up after a mint whose ticket is not recorded pauses as well. A balance that already meets the target needs no top-up and passes either way, and the quote-relative caps still apply afterwards.
The settlement top-up of a stock buy delivers the exact amount the quote promised. It is now measured against the receipt of the ramp's presigned swap: the ephemeral must hold the stock that swap paid it. If it holds less, nothing is sent and the ramp pauses for reconciliation, so the funding wallet pays what the swap fell short by. A receipt that is not visible yet is retried. The swap's soft minimum holds the API's own send. A stock swap that is already mined when the journal holds no claim for its send is now marked, and a marked swap is not topped up: the settlement top-up on a buy and the pre-swap top-up on a sale both pause instead. The existing caps still apply afterwards. The simulated pool now reports its payout in the swap's receipt, as the token does on chain.
Extends the fund-routing invariant for measured top-ups to provider mints, adds the invariant and audit entry for stock top-ups, and tells the author of a flow what a top-up after a mint is measured against.
Return USDC quote fees with 6 decimals that add up to the total
Fix the Gold app's Base checkout before its backend routes land
Define PAXG on Base behind per-rail Gold switches
fundEphemeral verifies one reported deposit hash against its blueprint: the direct transfer where the ramp has that blueprint, otherwise the user's own Squid swap. The pre-swap top-up read whichever of the two hash fields was set, the transfer hash first. Both phases now select the deposit through one function, so the top-up reads the hash that was verified and never the other field, and a ramp with neither blueprint is not measured.
The soft minimum of a fixed Uniswap swap holds the API's own send. A swap that is already mined when the journal holds no claim for its send was marked on the stock routes only. It is now marked on every route of the executor, and the post-swap top-up after the Polygon swap pauses for reconciliation when its swap carries the mark, as the stock top-ups do. The mark is written before the journal claims the operation, so it is on record whenever the claim is.
The mint phase lets a ramp pass on its recovery threshold when the ticket row was claimed but its outcome never recorded, while the mint measure accepted a confirmed row only and paused every later top-up of such a ramp. Both now read the same ticket rows, and for a row without a recorded outcome the measure is the threshold the mint phase applied.
Lists the measured top-ups in the fund-routing invariant, its audit entry and the flow author's rule, names the top-ups that stay bounded by the existing caps alone, and records that a fixed swap the API did not send is left without a top-up on every route.
…tfall Measure top-ups against what the preceding step delivered
The Pendulum status check sends its low-balance Slack alerts without awaiting them, so a refused send (e.g. a 429) became an unhandled rejection and Bun exited. It also built a new notifier per request, which reset the notifier's cooldown, so every status call re-sent every alert. One shared notifier now spaces the alerts out, and a failed send is only logged.
…rash Keep refused status alerts from crashing the API
Avenia stopped sending validateLivenessToken when it creates a SELFIE-FROM-LIVENESS document target. The response schema still required it, so getUploadUrls and getSelfieLivenessUrl answered 502 and the BRL KYC document step could not start. No client reads the token, so it becomes optional and is passed through when Avenia sends it.
A drained pool is an operational state, not a deployment regression. While it lasts, the nightly quote smoke test failed on every run and hid any new failure behind a known one. Only the exact low-liquidity answer is tolerated and logged; every other non-201 still fails.
Every other value this client puts into an Avenia query string is encoded; the Pix key was not, so characters such as the leading `+` of a phone key did not reach Avenia as typed.
The offramp recipient check logged the Pix key when Avenia's lookup failed and the receiver's full tax ID on a mismatch, and the unhandled-payment worker logged a tax ID on error. The observability spec forbids both. The warnings now name only the failed check, and the worker names the affected ramp IDs.
Avenia charges each pix-info DICT lookup to the sub-account named by subAccountId, or to the main account when none is given. The optional parameter lets callers that act for a user charge that user's quota.
The offramp recipient check looked Pix keys up on Vortex's main Avenia account, so every registration shared one DICT quota with every other main-account lookup. It now passes the user's subAccountId, which the check already resolves, so each user's lookups draw on their own sub-account's quota.
registerBrlOfframp called GET /v1/brla/validatePixKey before registering. Registration validates the same key server-side, and also checks that its owner matches the receiver's tax ID, so the pre-check doubled the provider lookups per offramp. It also reported any 4xx from the check, including a rate limit, as InvalidPixKeyError. A bad key now surfaces from registration as the same InvalidPixKeyError.
The integration skill told agents to validate Pix keys through GET /v1/brla/validatePixKey before registering and after an InvalidPixKeyError. Registration is the check, so the guidance now says what InvalidPixKeyError means and to correct the key.
validateAveniaOfframpRecipient turned every failed lookup into "Invalid pixKey or receiverTaxId.", so a valid key was reported as invalid during a provider outage. Only Avenia's 400 is about the key. A quota limit now returns the temporary provider failure (502), and other provider errors reach the register route's existing provider-failure mapping.
The integration skill said MissingBrlOfframpParametersError never fires for a missing pixDestination, but parseAPIError maps that message to it. It also quoted a walletAddress message that EVM offramps don't send.
Scope Avenia Pix key lookups to the user's sub-account and keep Pix keys out of logs
Drop the SDK's Pix key pre-check before BRL offramp registration
✅ Deploy Preview for vortex-sandbox ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for vrtx-dashboard ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for vortexfi ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
The exception also covered BUY and matched the message anywhere in any non-201 body. It now needs a SELL quote, HTTP 500 and the exact message, and shows as a warning annotation on the run.
Covers getSelfieLivenessUrl, getUploadUrls and kyb/documents, and names kyb/documents in the spec item, since it parses the same provider response.
Accept Avenia liveness targets without a validation token and tolerate low liquidity in the quote smoke test
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.
Included
API, shared and SDK
Gold app
Deployment notes
GOLD_ENABLED_DIRECTIONSandGOLD_USDC_ENABLED_DIRECTIONS. Empty or unset keeps the Gold routes on Base off, so nothing needs setting for this release.POST /v1/ramp/registeranswers 502 or 422 when the Pix lookup itself fails, where it used to answer400 "Invalid pixKey or receiverTaxId."(Scope Avenia Pix key lookups to the user's sub-account and keep Pix keys out of logs #1477). A bad key still answers that 400.packages/sdkandpackages/sharedhave no version bump here. The SDK change (Drop the SDK's Pix key pre-check before BRL offramp registration #1478) reaches npm users with the next publish.After the deploy
pix-info lookup failedin the API logs.The scheduled
e2eandexternal-api-contractsruns onstagingfail in one live check each, for reasons unrelated to this release. #1476 addresses both.