Skip to content

Commit ff7f939

Browse files
fix(docs): adding router addresses (#163)
1 parent 59f48ee commit ff7f939

File tree

2 files changed

+14
-21
lines changed

2 files changed

+14
-21
lines changed

docs/docs/03-Solve/02-solve-quick-start.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,15 @@ This guide covers:
2323

2424
```mermaid
2525
flowchart TD
26-
A[Intent Detected] --> B[Request estimated price and execution plan]
27-
B --> C{Quote Acceptable/<br>Profitable?}
28-
C -- No --> D[Abort or Re-query]
29-
C -- Yes --> E[Get the finalized route and call data execution package]
26+
A[Intent Detected] -->
27+
E[Get the finalized route and call data execution package]
3028
E --> F[Simulate & Execute Transaction]
3129
F --> G[Send Transaction & Finalize Fill]
3230
3331
34-
click B "solve-get-route-v2" "Borrow Quote"
35-
style B fill:#FF9B43,stroke:#333,stroke-width:2px,color:#000,font-weight:bold
32+
click E "solve-get-route-v2" "Borrow Quote"
33+
style E fill:#FF9B43,stroke:#333,stroke-width:2px,color:#000,font-weight:bold
3634
37-
click F "solve-api-quick-start#4-send-transaction-using-swap_call_data" "Borrow Quote"
38-
style F fill:#FF9B43,stroke:#333,stroke-width:2px,color:#000,font-weight:bold
3935
```
4036

4137
</div>
@@ -102,7 +98,7 @@ const route = await routeResponse.json();
10298

10399
// Send the calldata to the target contract (Sprinter Router or intent receiver)
104100
const tx = await signer.sendTransaction({
105-
to: route.to, // usually the router or intent execution contract
101+
to: route.to, // the router or intent execution contract eg. 0xbfc4b3546416c5a7fa857bdb31b7701bfc7a42f7 for Sprinter Solve (Mainnet, Base)
106102
data: route.swap_call_data,
107103
value: route.value || 0, // only include if route requires native gas
108104
gasLimit: route.gasEstimate + 50000, // add buffer
@@ -113,12 +109,10 @@ console.log("Transaction hash:", tx.hash);
113109

114110
## 4. Sprinter Solve Execution Tips
115111

116-
1. Start with `/quote` to quickly evaluate whether a fill is profitable.
112+
1. Use tools like Tenderly or hardhat to **simulate calldata before execution**.
117113

118-
2. Use tools like Tenderly or hardhat to **simulate calldata before execution**.
114+
2. **Pay attention to slippage** - Quotes expire quickly. Re-query /route before execution if delayed.
119115

120-
3. **Pay attention to slippage** - Quotes expire quickly. Re-query /route before execution if delayed.
116+
3. Use **gasEstimate for accurate costing** - whilst the Route API provides gas estimates — apply buffer when setting gas limits.
121117

122-
4. Use **gasEstimate for accurate costing** - whilst the Route API provides gas estimates — apply buffer when setting gas limits.
123-
124-
5. **Handling Rate Limits** - If you hit 429s, give it a moment and retry using retry_after value. You can request higher limits via [email protected].
118+
4. **Handling Rate Limits** - If you hit 429s, give it a moment and retry using retry_after value. You can request higher limits via [email protected].

docs/docs/03-Solve/index.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ Sprinter Solve enables the efficient execution of intent-based Swaps through its
2121

2222
```mermaid
2323
flowchart TD
24-
A[Intent Detected] --> B[Request estimated price and execution plan]
25-
B --> C{Quote Acceptable/<br>Profitable?}
26-
C -- No --> D[Abort or Re-query]
27-
C -- Yes --> E[Get the finalized route and call data execution package]
24+
A[Intent Detected] -->
25+
E[Get the finalized route and call data execution package]
2826
E --> F[Simulate & Execute Transaction]
2927
F --> G[Send Transaction & Finalize Fill]
3028
3129
32-
click B "solve-get-route-v2" "Borrow Quote"
33-
style B fill:#FF9B43,stroke:#333,stroke-width:2px,color:#000,font-weight:bold
30+
click E "solve-get-route-v2" "Borrow Quote"
31+
style E fill:#FF9B43,stroke:#333,stroke-width:2px,color:#000,font-weight:bold
32+
3433
```
3534

3635
## Key Features & Utility

0 commit comments

Comments
 (0)