chore: sync submodule state (parent ref update)
Made-with: Cursor
This commit is contained in:
@@ -63,10 +63,34 @@ Get a quote for bridging tokens to a destination chain.
|
||||
"minReceived": "999000000000000000",
|
||||
"estimatedTime": 300,
|
||||
"slippage": "50",
|
||||
"riskLevel": 0
|
||||
"riskLevel": 0,
|
||||
"sourceSwapQuote": "998000000000000000",
|
||||
"destinationSwapQuote": "997000000000000000"
|
||||
}
|
||||
```
|
||||
|
||||
When EnhancedSwapRouter is configured, the response may include `sourceSwapQuote` and `destinationSwapQuote` (best Dodoex-inclusive swap quote on source and destination chain).
|
||||
|
||||
### 1b. Swap + Bridge + Swap Quote (full path)
|
||||
|
||||
Get a combined quote for swapping on source chain, bridging, then swapping on destination chain.
|
||||
|
||||
**Endpoint:** `POST /api/bridge/quote`
|
||||
|
||||
**Request Body (extended for swap+bridge+swap):**
|
||||
```json
|
||||
{
|
||||
"sourceToken": "0x...",
|
||||
"destinationToken": "0x...",
|
||||
"sourceChainId": 138,
|
||||
"destinationChainId": 137,
|
||||
"amount": "1000000000000000000",
|
||||
"destinationAddress": "0x..."
|
||||
}
|
||||
```
|
||||
|
||||
**Response:** Same as Get Bridge Quote; `minReceived` reflects the full path when source/destination swap routers are configured. Use `sourceSwapQuote` and `destinationSwapQuote` for per-leg amounts. Initiate flow: (1) source tx: swap + bridge via SwapBridgeSwapCoordinator.swapAndBridge, (2) destination tx: claim + swap via BridgeSwapCoordinator.bridgeAndSwap or coordinator contract.
|
||||
|
||||
### 2. Initiate XRPL Bridge
|
||||
|
||||
Initiate a bridge transfer to XRPL.
|
||||
|
||||
Reference in New Issue
Block a user