Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
7487b85
add MXN KYC types, API methods, and SPEI payment mapping
Sharqiewicz Mar 27, 2026
d737d88
remove mcp.json
Sharqiewicz Mar 27, 2026
469e9ad
add MXN KYC endpoints and propagate email from Supabase JWT
Sharqiewicz Mar 27, 2026
dd639e5
route MXN onramp through AlfredPay and add SPEI quote support
Sharqiewicz Mar 27, 2026
816f967
implement MXN KYC form, document upload, and submission flow
Sharqiewicz Mar 27, 2026
815ee17
: update fiat account registration UI for SPEI
Sharqiewicz Mar 27, 2026
60edb76
enable MXN token, update UI components, and add translations
Sharqiewicz Mar 27, 2026
783f6ed
ignore mcp config
Sharqiewicz Mar 27, 2026
bd3b9d4
update bun.lock, supabase config, and typechain types
Sharqiewicz Mar 27, 2026
c410320
update Payment method mapper
Sharqiewicz Apr 1, 2026
0a3efc0
replace axios with native fetch wrapper in frontend
Sharqiewicz Apr 2, 2026
1aa743d
replace axios with native fetch in shared package
Sharqiewicz Apr 2, 2026
ff17113
thread AbortSignal from TanStack Query into service calls
Sharqiewicz Apr 2, 2026
b8c48e7
remove axios dependency
Sharqiewicz Apr 2, 2026
8254aa8
fix(security): update dependencies
aikido-autofix[bot] Apr 2, 2026
cbeeae1
address PR comments
Sharqiewicz Apr 2, 2026
5ab6965
add COP support and Colombia KYC/fiat account types
Sharqiewicz Apr 7, 2026
c2367bc
extend Alfredpay phase handlers and transaction routes to MXN/COP
Sharqiewicz Apr 7, 2026
8071888
restore Alfredpay document upload on back navigation
Sharqiewicz Apr 7, 2026
69b1528
add Colombia KYC form and ACH fiat account registration
Sharqiewicz Apr 7, 2026
5b7e5b3
improve Alfredpay types
Sharqiewicz Apr 7, 2026
fef68d3
fix: address PR review feedback - adjust bn.js, undici, pino, ajv ove…
Copilot Apr 7, 2026
b2e7a18
Adjust bun.lock
ebma Apr 7, 2026
5cdbc3d
Merge pull request #1110 from pendulum-chain/fix/aikido-security-upda…
ebma Apr 7, 2026
a1a1d7e
migrate hardcoded colors to oklch tokens and fix contrast
Sharqiewicz Apr 8, 2026
9f342cc
migrate form validation from yup to zod across the frontend
Sharqiewicz Apr 8, 2026
1d36949
migrate form validation from yup to zod across the frontend
Sharqiewicz Apr 8, 2026
2472aaa
add KYB form flow with dedicated hook, back button, and state-based r…
Sharqiewicz Apr 8, 2026
90a6341
decouple AveniaVerificationForm from actor and fix useKYCForm mounti…
Sharqiewicz Apr 8, 2026
4f20128
add verified state visuals to KYB verify step with animated SparkleBu…
Sharqiewicz Apr 8, 2026
3855d96
add KYB form flow with dedicated hook, back button, and state-based r…
Sharqiewicz Apr 8, 2026
a69a2fa
Enforce light-only color scheme
Sharqiewicz Apr 8, 2026
2cf1670
Merge pull request #1117 from pendulum-chain/fix/theme-config
ebma Apr 9, 2026
815c0e5
improve Avenia KYC visual feedback
Sharqiewicz Apr 9, 2026
d568315
fix birthDate field
Sharqiewicz Apr 9, 2026
84c426f
Merge branch 'staging' into fix/improve-avenia-kyb-flow
Sharqiewicz Apr 10, 2026
91ea08e
Update package.json to require Node.js version 18 or higher
ebma Apr 13, 2026
e509974
Rename variable
ebma Apr 13, 2026
f7dee52
Override axios peer dependencies to 1.15.0
ebma Apr 13, 2026
03dc4d5
Merge branch 'staging' into chore/remove-axios
ebma Apr 13, 2026
f263e0d
Amend merge
ebma Apr 13, 2026
44d6576
Merge pull request #1109 from pendulum-chain/chore/remove-axios
ebma Apr 13, 2026
ef7a013
address PR #1116 review comments
Sharqiewicz Apr 13, 2026
b656336
fix type issues
Sharqiewicz Apr 13, 2026
7c90848
add KYB form, document upload screens, and machine states
Sharqiewicz Apr 16, 2026
46064f2
remove unnecessary .md files, create Alfredpay.md file
Sharqiewicz Apr 16, 2026
6c5f3fd
add Karpathy's rules to CLAUDE.md
Sharqiewicz Apr 16, 2026
04b5c27
implement Alfredpay Backend KYB endpoints + shared types
Sharqiewicz Apr 16, 2026
0e835ea
Merge branch 'staging' into feat/alfredpay-colombia
Sharqiewicz Apr 17, 2026
13fd991
resolve TypeScript errors from Express v5 types and stale shared dist
Sharqiewicz Apr 17, 2026
2ff9a8e
update Alfredpay docs
Sharqiewicz Apr 17, 2026
927c97d
Merge pull request #1116 from pendulum-chain/fix/improve-avenia-kyb-flow
ebma Apr 21, 2026
27bae53
Add changes to normalize the tax ID for Avenia
ebma Apr 21, 2026
9e4668c
Add migration to change format of the tax_id
ebma Apr 21, 2026
8451d27
Add edge-case handling to migration
ebma Apr 21, 2026
e191ab1
Merge pull request #1123 from pendulum-chain/normalize-tax-id
ebma Apr 22, 2026
2e3d282
Misc code review improvements
ebma Apr 22, 2026
4c7adff
Merge branch 'staging' into feat/alfredpay-colombia
Sharqiewicz Apr 22, 2026
2e915ce
adjust error handling when checking status
gianfra-t Apr 22, 2026
1a992a5
Merge pull request #1125 from pendulum-chain/final-adjustments-alfred
ebma Apr 22, 2026
b2e9f36
Merge branch 'staging' into feat/alfredpay-colombia
ebma Apr 22, 2026
b950b73
Address code review comments
ebma Apr 22, 2026
95fd50f
Consider global limit for Avenia ramp limit calculation
ebma Apr 22, 2026
1578af4
adjustments to alfredpay onramp card
gianfra-t Apr 22, 2026
628e584
Merge branch 'feat/alfredpay-colombia' of github.com:pendulum-chain/v…
gianfra-t Apr 22, 2026
d22f615
Fix wrong variable used in offramp finalize for alfredpay
ebma Apr 22, 2026
d9be709
Update error messages for amount out of range in buy/sell transactions
ebma Apr 22, 2026
9b2a237
Update minimum buy/sell amounts in configuration
ebma Apr 22, 2026
870813d
Merge branch 'feat/alfredpay-colombia' of github.com:pendulum-chain/v…
Sharqiewicz Apr 22, 2026
205d428
Make it easy to switch between USDC and USDT for AlfredPay
ebma Apr 23, 2026
b8f1e8e
Minor bug fixes
ebma Apr 23, 2026
99d9196
prevent scroll for default widget height
Sharqiewicz Apr 23, 2026
5c854b7
allow CopyButton without text
Sharqiewicz Apr 23, 2026
4ff4be5
prevent widget jumping
Sharqiewicz Apr 23, 2026
1e5748c
improve the design of US Onramp Payment Summary
Sharqiewicz Apr 23, 2026
462b901
Merge branch 'feat/alfredpay-colombia' of github.com:pendulum-chain/v…
Sharqiewicz Apr 23, 2026
826bc5b
Fix bug in frontend that causes app to crash
ebma Apr 23, 2026
b74e6dd
Adjust min buy and sell amounts for AlfredPay
ebma Apr 23, 2026
031f828
Append assetsymbol to amount out of rang errors
ebma Apr 23, 2026
810893d
Reset stale AlfredPay status to Consulted on upstream 404 error
ebma Apr 23, 2026
2427364
Increase gas fee multipliers for transaction signing
ebma Apr 23, 2026
0cfb6b0
Fix issue with wrong country parameter for kyc redirect link
ebma Apr 23, 2026
b76509c
Disable MXN and COP again
ebma Apr 23, 2026
b64bf97
Merge pull request #1105 from pendulum-chain/feat/alfredpay-colombia
ebma Apr 23, 2026
df060c1
Update Paseo ws url
ebma Apr 23, 2026
1f0b26d
fix cors polcy - add new staging url
Sharqiewicz Apr 23, 2026
e3d8e47
Merge pull request #1126 from pendulum-chain/chore/fix-cors-staging
Sharqiewicz Apr 23, 2026
407658c
Fix URL construction in api-client to use window origin
ebma Apr 23, 2026
5e32851
add handler for dynamic expiration of vortex quote
gianfra-t Apr 24, 2026
a46c3b3
Adjust content of US onramp details
ebma Apr 24, 2026
b50a54c
Lower quote expiry threshold
ebma Apr 24, 2026
1448718
use percentage based quote refresh constant
gianfra-t Apr 24, 2026
42ae81d
Adjust type of AlfredPayFiatAccount to match returned data in production
ebma Apr 24, 2026
3e07891
do not expire quote after alfredpay ramp is registered
gianfra-t Apr 24, 2026
b2c945c
Update AlfredpayFiatAccountFields and AlfredpayAddFiatAccountRequest …
Sharqiewicz Apr 24, 2026
32cfd37
Build per-type fiatAccountFields in addFiatAccount for v2 Alfredpay API
Sharqiewicz Apr 24, 2026
31a8c4e
Update fiat account forms and validation for v2 Alfredpay API
Sharqiewicz Apr 24, 2026
6a0ec75
update favicon config
Sharqiewicz Apr 24, 2026
0414b9d
Merge branch 'alfredpay-quote-expiration-fix' into chore/update-alfre…
ebma Apr 24, 2026
18bf987
Small fix for `undefined`
ebma Apr 24, 2026
0bef80b
Merge pull request #1128 from pendulum-chain/chore/update-alfredpay-a…
ebma Apr 24, 2026
4c26350
re fetch expired quote and order in final alfredpay offramp handler
gianfra-t Apr 24, 2026
246d97f
pre-sign backup tx for alfred onramps
gianfra-t Apr 24, 2026
f7ec053
Fix fiatAccountId not passed to offramp endpoint
ebma Apr 24, 2026
eeb5dc0
Fix wrong input amount used for alfred pay offramp
ebma Apr 27, 2026
71a1ed4
fix payment summary spacings, optimize ramp summary animation
Sharqiewicz Apr 27, 2026
57c5054
Send fallback offramp transfer to userAddress instead of funding account
ebma Apr 27, 2026
10c4df3
Add debug logs and fix issue with wrong token in final settlement sub…
ebma Apr 27, 2026
02a53fa
Use different nonce for offramp fallback
ebma Apr 27, 2026
72ced1b
Remove faulty extra handling for final settlement subsidy in alfredpa…
ebma Apr 27, 2026
071d97a
Remove padding bottom
ebma Apr 27, 2026
8abcb22
adjust trivial squidrouter case
gianfra-t Apr 27, 2026
0907012
alfredpay mint fallback
gianfra-t Apr 27, 2026
a56acf2
Add abort controller to polling for Alfredpay onramp status
ebma Apr 27, 2026
f25b924
Skip squidRouter for Alfredpay onramps and transition directly to des…
ebma Apr 27, 2026
6393256
Refactor Alfredpay offramp to handle direct Polygon transfers without…
ebma Apr 27, 2026
8885e15
fix delete fiat account request
Sharqiewicz Apr 27, 2026
94cbda9
Merge branch 'alfredpay-quote-expiration-fix' of github.com:pendulum-…
Sharqiewicz Apr 27, 2026
3f49d4a
Fix issue with direct transfer for Polygon offramp
ebma Apr 27, 2026
b29a4c4
Refactor squidrouter-permit-execution-handler.ts
ebma Apr 27, 2026
41b422c
Adjust gas fee calculations in signUnsigned.ts for improved transacti…
ebma Apr 27, 2026
c3c8ce7
Set isExternal to false for AlfredPay accounts
ebma Apr 27, 2026
3cf1538
Merge pull request #1127 from pendulum-chain/alfredpay-quote-expirati…
ebma Apr 27, 2026
ac55e42
add select for isExternal fiat account field (Alfredpay)
Sharqiewicz Apr 27, 2026
40c4260
remove checkbox from alfredpay fiat account form
Sharqiewicz Apr 27, 2026
07149bd
skip rebalancer account balance initial check if restarting
gianfra-t Apr 27, 2026
759017f
Merge branch 'staging' of github.com:pendulum-chain/vortex into staging
gianfra-t Apr 27, 2026
8a6ccc9
Disable assethub currencies for alfredpay
ebma Apr 28, 2026
5952570
Merge branch 'staging' into alfredpay-quote-expiration-fix
Sharqiewicz Apr 28, 2026
2d5c233
Fix type issue
ebma Apr 28, 2026
e80ba8b
Merge branch 'staging' into alfredpay-quote-expiration-fix
ebma Apr 28, 2026
f7e32a8
fix label translation key
Sharqiewicz Apr 28, 2026
ba3b847
Merge branch 'alfredpay-quote-expiration-fix' of github.com:pendulum-…
Sharqiewicz Apr 28, 2026
2a5a756
Merge pull request #1129 from pendulum-chain/alfredpay-quote-expirati…
ebma Apr 28, 2026
fb2ee0b
add support for Alfredpay Checking isExternal true
Sharqiewicz Apr 28, 2026
624a854
add missing translations
Sharqiewicz Apr 28, 2026
2cea8c2
feat(alfredpay): extend fiat account API for WIRE and address fields
Sharqiewicz Apr 29, 2026
14faebf
feat(fiat-registration): add WIRE address fields, half-width layout, …
Sharqiewicz Apr 29, 2026
e60312b
fix(fiat-registration): accessibility and touch improvements
Sharqiewicz Apr 29, 2026
0277982
update displayed fiat account details
Sharqiewicz Apr 29, 2026
73b067e
update US KYC Styling
Sharqiewicz Apr 29, 2026
bacf844
Adjust translation strings
ebma Apr 29, 2026
1b006b8
Merge pull request #1130 from pendulum-chain/feat/alfredpay-isExterna…
ebma Apr 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ CLAUDE.local.md
# hardhat generated files in workspace contract projects
contracts/*/artifacts
contracts/*/cache

.mcp.json
60 changes: 60 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,63 @@ bun test
## Type Issues

If IDE doesn't detect `@pendulum-chain/types` properly, ensure all `@polkadot/*` packages match versions in the types package. The root `package.json` uses `catalog:` for version management.

---

# AI AGENT RULES

## 1. Think Before Coding

**Don't assume. Don't hide confusion. Surface tradeoffs.**

Before implementing:
- State your assumptions explicitly. If uncertain, ask.
- If multiple interpretations exist, present them - don't pick silently.
- If a simpler approach exists, say so. Push back when warranted.
- If something is unclear, stop. Name what's confusing. Ask.

## 2. Simplicity First

**Minimum code that solves the problem. Nothing speculative.**

- No features beyond what was asked.
- No abstractions for single-use code.
- No "flexibility" or "configurability" that wasn't requested.
- No error handling for impossible scenarios.
- If you write 200 lines and it could be 50, rewrite it.

Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.

## 3. Surgical Changes

**Touch only what you must. Clean up only your own mess.**

When editing existing code:
- Don't "improve" adjacent code, comments, or formatting.
- Don't refactor things that aren't broken.
- Match existing style, even if you'd do it differently.
- If you notice unrelated dead code, mention it - don't delete it.

When your changes create orphans:
- Remove imports/variables/functions that YOUR changes made unused.
- Don't remove pre-existing dead code unless asked.

The test: Every changed line should trace directly to the user's request.

## 4. Goal-Driven Execution

**Define success criteria. Loop until verified.**

Transform tasks into verifiable goals:
- "Add validation" → "Write tests for invalid inputs, then make them pass"
- "Fix the bug" → "Write a test that reproduces it, then make it pass"
- "Refactor X" → "Ensure tests pass before and after"

For multi-step tasks, state a brief plan:
```
1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]
```

Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
6 changes: 4 additions & 2 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
"@polkadot/util-crypto": "catalog:",
"@scure/bip39": "^1.5.4",
"@supabase/supabase-js": "catalog:",
"@types/multer": "^2.1.0",
"@vortexfi/shared": "workspace:*",
"@wagmi/core": "catalog:",
"axios": "catalog:",

"bcrypt": "catalog:",
"big.js": "catalog:",
"body-parser": "^1.17.0",
Expand All @@ -34,6 +35,7 @@
"joi": "^17.13.3",
"method-override": "^3.0.0",
"morgan": "^1.8.1",
"multer": "^2.1.1",
"node-cache": "^5.1.2",
"p-limit": "^6.1.0",
"pg": "^8.14.1",
Expand Down Expand Up @@ -80,7 +82,7 @@
"typescript": "catalog:"
},
"engines": {
"node": ">=12"
"node": ">=18"
},
"license": "MIT",
"name": "vortex-backend",
Expand Down
Loading
Loading