You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update to solve api for gas limits ([#193](https://github.com/sprintertech/sprinter-sdk/issues/193)) ([f8e77a6](https://github.com/sprintertech/sprinter-sdk/commit/f8e77a667db859a184812db4d69d6a38c20776fc))
7
+
- Update to solve api for gas limits ([#193](https://github.com/sprintertech/sprinter-sdk/issues/193)) ([f8e77a6](https://github.com/sprintertech/sprinter-sdk/commit/f8e77a667db859a184812db4d69d6a38c20776fc))
Copy file name to clipboardExpand all lines: docs/docs/01-introduction/01-introduction.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ sidebar_position: 1
6
6
---
7
7
8
8
<divclass="logo-container">
9
-
<imgsrc="/img/sprinter-header.png"class="logo-light-mode"alt="Sprinter Logo Black" />
10
-
<imgsrc="/img/sprinter-header.png"class="logo-dark-mode"alt="Sprinter Logo White" />
9
+
<imgsrc="/img/credit header.png"class="logo-light-mode"alt="Sprinter Logo Black" />
10
+
<imgsrc="/img/credit header.png"class="logo-dark-mode"alt="Sprinter Logo White" />
11
11
</div>
12
12
13
13
#
@@ -16,13 +16,15 @@ Sprinter envisions a decentralized, open and equitable financial system that pro
16
16
17
17
# What is Sprinter?
18
18
19
-
Sprinter combines solving-as-a-service infrastructure with credit-based crosschain liquidity. It enables solvers to borrow and execute onchain actions without pre-funded inventory, while giving dApps and protocols access to best-in-class execution routes, powered by the Project Blanc advanced solving technology.
19
+
Sprinter combines solving-as-a-service infrastructure with credit-based crosschain liquidity. It enables venues to borrow and execute onchain actions without pre-funded inventory, while giving dApps and protocols access to best-in-class execution routes, powered by the Project Blanc advanced solving technology.
20
20
21
21
## Sprinter’s Core Products
22
22
23
23
### [Sprinter Stash](Stash)
24
24
25
-
A crosschain credit protocol providing liquidity access to solvers and market makers without requiring collateral. Liquidity providers deposit USDC into the protocol, earning returns through solver fees and passive yield strategies.
25
+
Sprinter Stash is a universal credit protocol that powers the next-generation of use cases, from solver credit lines to trading, whilst rewarding LPs with sustainable, risk-managed stablecoin yield.
26
+
27
+
Stash provides zero-collateral credit, so solvers don’t need capital, users don’t need to touch bridges, and dApps get instant fills.
26
28
27
29
### [Sprinter Solve](Solve)
28
30
@@ -37,3 +39,4 @@ If you have questions about Sprinter, the code, the docs, or have a partnership
H --> I[Intent Protocol Repays Borrowed Credit + Costs]
36
29
I --> J[Fill Complete]
37
30
38
-
click B "use-stash#2-request-a-borrow-cost-estimate-optional" "Borrow Cost"
31
+
click B "borrow-quote-api" "Borrow Cost"
39
32
style B fill:#FF9B43,stroke:#333,stroke-width:2px,color:#000,font-weight:bold
40
33
41
-
click E "use-stash#3-request-a-final-borrow-quote" "Borrow Quote"
34
+
click E "borrow-cost-api" "Borrow Quote"
42
35
style E fill:#FF9B43,stroke:#333,stroke-width:2px,color:#000,font-weight:bold
43
36
44
37
```
45
38
46
39
</div>
47
40
48
-
### 2. Request a Credit Borrow Quote Estimate (Optional)
49
-
50
-
Call the [**Borrow Quote API**](borrow-quote-api) to preview an estimated borrowing cost for a potential fill before requesting credit. This can be based on input or output amount.
51
-
52
-
```ts title="Request Borrow Quote Estimate with type ExactInput (input amount - borrow costs)"
53
-
const baseUrl ="https://api.sprinter.tech";
54
-
const sourceChainId ="eip155:8453"; // eip155:8453(Base), eip155:10 (Optimism), eip155:42161 (Arbitrum). ChainId must use capid format from our configuration
55
-
const protocol ="across"; // "across" or "mayan"
56
-
const type ="ExactInput"; // Request will consider the amount as (input amount - borrow costs)
57
-
const amount =10000000; // This is the ExactInput eg 1 USDC (6 decimals)
```ts title="Request Final Borrow Quote Estimate with type ExactOutput (output amount + borrow costs)"
79
-
const baseUrl ="https://api.sprinter.tech";
80
-
const sourceChainId ="eip155:8453"; // eip155:8453(Base), eip155:10 (Optimism), eip155:42161 (Arbitrum). ChainId must use capid format from our configuration
81
-
const protocol ="across"; // "across" or "mayan"
82
-
const type ="ExactOutput"; // Request will consider the amount as (output amount + borrow costs)
83
-
const amount =10000000; // This is the ExactInput eg 1 USDC (6 decimals)
Sprinter Stash enables solvers to borrow liquidity with near zero collateral, and achieves this through a series of mechanisms below:
104
44
105
-
### 3. Request the final Credit Borrow Cost
106
-
107
-
If proceeding to fill with Sprinter Stash, call the [**Borrow Cost API**](borrow-cost-api) to request the final borrow cost to reserve credit and authorize the fill.
108
-
109
-
```ts title="Fetch Borrow Cost Example Payload"
110
-
const baseUrl ="https://api.sprinter.tech";
111
-
const destChainId ="eip155:8453"; // eip155:8453(Base), eip155:10 (Optimism), eip155:42161 (Arbitrum) destChainId must use capid format from our configuration
input: "callData", // encoded callData for destination ( Borrow & Fill) it also contains depositData prams for MPC validation
123
-
caller: "address", // the address that will execute the borrow and fill ond destChainId
124
-
},
125
-
},
126
-
);
127
-
```
45
+
#### 1. Approved Solvers
46
+
47
+
On launch only approved solvers can access Stash credit. These solvers:
48
+
49
+
- Undergo screening and onboarding by the Sprinter team
50
+
- Must use authenticated API keys tied to their accounts
51
+
- Are rate-limited and monitored to ensure responsible usage
52
+
53
+
Sprinter also tracks solver performance and creditworthiness over time. Solvers who consistently repay on time may be granted higher limits, while misbehavior results in penalties or revoked access with both informed through regular reviews of:
54
+
55
+
- Fill accuracy and repayment behavior
56
+
- Volume solved and protocols interacted with
57
+
- On-chain and off-chain repayment events
58
+
59
+
#### 2. Transaction-Level Guarantees
60
+
61
+
Each fill is validated against the user’s original intent using:
62
+
63
+
- Verified source deposits (e.g. via Across)
64
+
- MPC-signed authorization signatures
65
+
- Controlled function execution (via calldata)
128
66
129
-
### 4. Fill Optimization Tips
67
+
Sprinter acts as an intermediary: the solver never touches user funds directly. The system ensures that repayment is guaranteed by the user's transaction on the source chain before the solver receives liquidity.
130
68
131
-
Here are some tips on getting the best performance and profit from your Sprinter Stash integration:
69
+
#### 3. Protocol Guardrails & Limits
132
70
133
-
1.**Pre-fetch Borrow Cost** - Call `GET /type/{type}/quote` as early as possible (when detecting intents) to evaluate solver profitability.
71
+
Sprinter enforces:
72
+
73
+
- Per-solver daily limits (to minimize exposure)
74
+
- Per-transaction liquidity caps
75
+
- Circuit breakers triggered by irregular repayment behavior
76
+
- Slashing (or bond requirements) for higher-risk integrations
77
+
78
+
#### 4. Bonding Pools
79
+
80
+
Sprinter will also allow Solver Operators to create Bonding Pools, that escrow funds to vouch for their solvers, enabling more favourable borrowing conditions. Sprinter Bonding Pools will be controlled by governance and similarly allow slashing by governance for any malicious activity or violations.
81
+
82
+
## Stash Fees
83
+
84
+
Sprinter Stash handles crosschain liquidity fills. Revenue is generated from the spread between between the amount the user deposited on source and the amount provided on the destination.
85
+
86
+
### Revenue Components
87
+
88
+
-**Fill Revenue:** Amount user deposits on source - amount send to user on destination
89
+
-**Borrow Costs:** Cost of liquidity borrowing and crosschain repayment.
90
+
-**Solver Costs:** Gas fees and execution costs fronted by solvers.
91
+
92
+
### Profit Calculation
93
+
94
+
```
95
+
Fill Profit = Fill Revenue - Borrow Costs - Solver Costs
96
+
```
134
97
135
-
2.**Batch Gas Where Possible** - Bundle execution and repayment transactions to reduce gas costs.
98
+
### Monthly Distribution
136
99
137
-
3.**Optimize for Slippage** - Query quotes close to execution time to reduce stale pricing or slippage-induced fills.
100
+
1. Withdraw raw profits from liquidity pools.
101
+
2. Deduct solver gas costs.
102
+
3. Distribute monthly fill profits to:
138
103
139
-
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].
Copy file name to clipboardExpand all lines: docs/docs/02-Stash/03-get-the-borrow-quote-for-a-liquidity-transaction-based-on-the-input-data.api.mdx
+59-7Lines changed: 59 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,16 +30,13 @@ import Heading from "@theme/Heading";
30
30
context={"endpoint"}
31
31
></MethodEndpoint>
32
32
33
-
A [borrow quote](/Resources/glossary#stash-borrow-quote) is the **preliminary estimated fee** a solver would incur to borrow credit from Sprinter Stash. It is returned off-chain via the Stash API and helps solvers determine if pursuing a fill is profitable.
34
-
35
-
Borrow quote includes expected gas, risk premiums, protocol fees, and capital access costs — but it is not a binding or reserved price.
33
+
## Borrow quote overview
36
34
37
-
See the [Request a Credit Borrow Quote Estimate example payload](use-stash#2-request-a-credit-borrow-quote-estimate-optional).
35
+
A [borrow quote](/Resources/glossary#stash-borrow-quote) is the **preliminary estimated fee** a solver would incur to borrow credit from Sprinter Stash. It is returned off-chain via the Stash API and helps solvers determine if pursuing a fill is profitable.
38
36
39
-
A [borrow quote](/Resources/glossary#stash-borrow-quote) is the final, **authorized borrowing offer** issued by Sprinter Stash when a solver decides to proceed with a fill.
40
-
It reserves credit under specific conditions, allowing solvers to confidently execute the cross-chain transaction.
37
+
Borrow quote includes expected gas, risk premiums, protocol fees, and capital access costs — but it is not a binding or reserved price. This can be based on input or output amount.
41
38
42
-
See the [Request Final Borrow Quote example payload](/Stash/use-stash#3-request-a-final-borrow-quote).
39
+
See the [Request a Credit Borrow Quote Estimate example payload](borrow-quote-api#example-borrow-quote-payload).
43
40
44
41
<Heading
45
42
id={"request"}
@@ -204,3 +201,58 @@ See the [Request Final Borrow Quote example payload](/Stash/use-stash#3-request-
204
201
},
205
202
}}
206
203
></StatusCodes>
204
+
205
+
## Example Borrow Quote payload
206
+
207
+
```ts title="Request Borrow Quote Estimate with type ExactInput (input amount - borrow costs)"
208
+
const baseUrl ="https://api.sprinter.tech";
209
+
const sourceChainId ="eip155:8453"; // eip155:8453(Base), eip155:10 (Optimism), eip155:42161 (Arbitrum). ChainId must use capid format from our configuration
210
+
const protocol ="across"; // "across" or "mayan"
211
+
const type ="ExactInput"; // Request will consider the amount as (input amount - borrow costs)
212
+
const amount =10000000; // This is the ExactInput eg 1 USDC (6 decimals)
```ts title="Request Final Borrow Quote Estimate with type ExactOutput (output amount + borrow costs)"
234
+
const baseUrl ="https://api.sprinter.tech";
235
+
const sourceChainId ="eip155:8453"; // eip155:8453(Base), eip155:10 (Optimism), eip155:42161 (Arbitrum). ChainId must use capid format from our configuration
236
+
const protocol ="across"; // "across" or "mayan"
237
+
const type ="ExactOutput"; // Request will consider the amount as (output amount + borrow costs)
238
+
const amount =10000000; // This is the ExactInput eg 1 USDC (6 decimals)
Copy file name to clipboardExpand all lines: docs/docs/02-Stash/04-get-the-borrow-cost-for-a-liquidity-transaction.api.mdx
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ import Heading from "@theme/Heading";
33
33
A [borrow cost](/Resources/glossary#stash-borrow-cost) is the final, **authorized borrowing offer** issued by Sprinter Stash when a solver decides to proceed with a fill.
34
34
It reserves credit under specific conditions, allowing solvers to confidently execute the cross-chain transaction.
35
35
36
-
See the [Request Final Borrow Cost example payload](use-stash#3-request-the-final-credit-borrow-cost).
36
+
See the [Request Final Borrow Cost example payload](borrow-cost-api#3-request-the-final-credit-borrow-cost) and check out the [optimization tips](borrow-cost-api#fill-optimization-tips)
37
37
38
38
<Heading
39
39
id={"request"}
@@ -133,3 +133,39 @@ See the [Request Final Borrow Cost example payload](use-stash#3-request-the-fina
133
133
},
134
134
}}
135
135
></StatusCodes>
136
+
137
+
## Example Borrow Cost payload
138
+
139
+
```ts title="Fetch Borrow Cost Example Payload"
140
+
const baseUrl ="https://api.sprinter.tech";
141
+
const destChainId ="eip155:8453"; // eip155:8453(Base), eip155:10 (Optimism), eip155:42161 (Arbitrum) destChainId must use capid format from our configuration
0 commit comments