Skip to content

Commit 74cfeee

Browse files
committed
Add Revolut fiat payment provider
Queries Revolut Ramp's orders endpoint, authenticated with the X-API-KEY header that the GUI's existing ramp key uses. Two shapes of that API are easy to get wrong and are handled explicitly: the start/end bounds are date-only, and the response is a bare array paged by skip/limit rather than a cursor envelope. An order id is not unique in the response. Revolut returns one row per payment attempt, so the same id arrives both COMPLETED and FAILED. Since orderId keys the StandardTx document, attempts are collapsed to one winner per id, settled beating unsettled, before anything is emitted. Native assets resolve to their Edge chain with a null tokenId. Tokens resolve their chain but leave tokenId undefined: Revolut reports no contract address, and a guessed one would mis-price the asset.
1 parent 96b821a commit 74cfeee

5 files changed

Lines changed: 652 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
- added: CI job that runs the mocha test suite on every pull request
6+
- added: Add Revolut fiat payment provider
7+
- added: Add Swapter reporting
8+
- added: Add NYM Swap (nymswap) reporting
59
- changed: Update sideshift plugin with new optional API fields
610
- changed: Query both old and new Sideshift affiliate accounts and merge completed orders to preserve full shift history across an affiliate-account rotation
711
- changed: Add signature header support to Exolix
@@ -11,6 +15,7 @@
1115
- changed: Use rates V3 for transactions with pluginId/tokenId
1216
- fixed: Moonpay by adding Revolut payment type
1317
- fixed: Use v2 rates API
18+
- fixed: Repair the broken mocha test suite (correct util.test.ts import and stale analytics fixtures) so npm test passes
1419

1520
## 0.2.0
1621

src/demo/partners.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ export default {
113113
type: 'swap',
114114
color: '#5891EE'
115115
},
116+
revolut: {
117+
type: 'fiat',
118+
color: '#191C33'
119+
},
116120
safello: {
117121
type: 'fiat',
118122
color: deprecated

0 commit comments

Comments
 (0)