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
Copy file name to clipboardexpand all lines: src/content/docs/generalised-incentives/build-bridge-agnostic.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Build Bridge Agnostic"
3
-
description: "Are you building a cross-chain application and are you tired of vendor lock-in? So are we! Generalised Incentives allows you to support a wide varity of messaging bridges while standarding the user interface."
3
+
description: "Are you building a cross-chain application and are you tired of vendor lock-in? So are we! Generalised Incentives allows you to support a wide variety of messaging bridges while standarding the user interface."
Copy file name to clipboardexpand all lines: src/content/docs/generalised-incentives/integrate.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ This will add Generalised Incentives to your repository and you are now ready to
21
21
22
22
Start by adding import statements to your smart contract file. We need to import 2 files:
23
23
24
-
-[ICrossChainReceiver](https://github.com/catalystdao/GeneralisedIncentives/blob/main/src/interfaces/ICrossChainReceiver.sol): This will ensure you corretly implement the interfaces for the message callbacks
24
+
-[ICrossChainReceiver](https://github.com/catalystdao/GeneralisedIncentives/blob/main/src/interfaces/ICrossChainReceiver.sol): This will ensure you correctly implement the interfaces for the message callbacks
25
25
-[IIncentivizedMessageEscrow](https://github.com/catalystdao/GeneralisedIncentives/blob/main/src/interfaces/IIncentivizedMessageEscrow.sol): This will ensure you correctly call the message escrow correctly.
26
26
-[Optionally][IMessageEscrowStructs](https://github.com/catalystdao/GeneralisedIncentives/blob/main/src/interfaces/IMessageEscrowStructs.sol): To simplify struct handling.
27
27
@@ -44,7 +44,7 @@ contract YourContract is ICrossChainReceiver, IMessageEscrowStructs {
44
44
45
45
The integration is less opinionated than other cross-chain endpoint, as we need to define some boilercode. First, lets set our escrow endpoint. Below we present 2 options
46
46
47
-
1. Set the escrow explicity. This defines a single escrow which you may interact in. This may be desired to reduce complexity but also introduces some vendor lock-in.
47
+
1. Set the escrow explicitly. This defines a single escrow which you may interact in. This may be desired to reduce complexity but also introduces some vendor lock-in.
48
48
2. Define a list of escrow that are allowed. This allows you to pick and chose which AMB is best suited for a certain connection. This introduces some additional complexity but mitigates vendor lock-in.
49
49
50
50
```solidity
@@ -128,7 +128,7 @@ contract YourContract is ICrossChainReceiver, IMessageEscrowStructs {
128
128
// That is because if the message fails for some reason,
129
129
// an error code is prepended to the message.
130
130
// By always sending back hex"00", we ensure that the first byte is unused.
131
-
// Alternativly, use this byte as our own failure code.
131
+
// Alternatively, use this byte as our own failure code.
132
132
return bytes.concat(
133
133
hex"00",
134
134
keccak(message)
@@ -152,7 +152,7 @@ We havn't actually sent any messages yet. Lets do that. For simplicity, this sec
152
152
```solidity
153
153
154
154
contract YourContract is ICrossChainReceiver, IMessageEscrowStructs {
155
-
// If your contract didn't inheirt IMessageEscrowStructs, you may have to
155
+
// If your contract didn't inherit IMessageEscrowStructs, you may have to
156
156
// set the type of incentive to IIncentivizedMessageEscrow.IncentiveDescription.
Copy file name to clipboardexpand all lines: src/content/docs/protocol/liquidity-pools.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Liquidity Pools"
3
-
description: "Catalyst liquidity pools can relicate any type of AMM pool such as Curve stableswap, UNI v2, and Balancer all while being nativly cross-chain."
3
+
description: "Catalyst liquidity pools can relicate any type of AMM pool such as Curve stableswap, UNI v2, and Balancer all while being natively cross-chain."
4
4
sidebar:
5
5
order: 3
6
6
---
@@ -173,4 +173,4 @@ scenarios: {
173
173
```
174
174
175
175
Any asset within the pool can be exchanged into any other asset in the pool. This is facilitated by swapping into Units as an intermediary. Units are pricing using an internal price curve which defined a constant operation space.
176
-
For local swaps within the same vaults, swap can be converted into and out of units in a single transaction allowing for full local utilisation of all liquidity contains the in vault. Using a cross-chain messaging layer, Units can be transfered to other connected vaults, where they can be converted into the desired output token.
176
+
For local swaps within the same vaults, swap can be converted into and out of units in a single transaction allowing for full local utilisation of all liquidity contains the in vault. Using a cross-chain messaging layer, Units can be transferred to other connected vaults, where they can be converted into the desired output token.
Copy file name to clipboardexpand all lines: src/content/docs/protocol/swaps-types.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Swaps Types"
3
-
description: "Catalyst suports 4 different types of swaps: Local Swaps, Cross-Chain Swaps, Underwritten Cross-chain swaps, and Logic Dependent Swaps. This allows Catalyst to bring the forefront of cross-chain innovation anywhere."
3
+
description: "Catalyst supports 4 different types of swaps: Local Swaps, Cross-Chain Swaps, Underwritten Cross-chain swaps, and Logic Dependent Swaps. This allows Catalyst to bring the forefront of cross-chain innovation anywhere."
4
4
sidebar:
5
5
order: 4
6
6
---
@@ -25,7 +25,7 @@ Underwriters underwriting their own swaps can get sub second swaps price finalit
25
25
26
26
## Logic Dependent Swaps
27
27
28
-
By only commiting to a swap if a certain logic returns true, Catalyst opens up for a host of new cross-chain applications. Developers can set any condition which can be programmed into a smart contract to determine whether or not to commit to the swap. If not, the swap reverts back to the sending chains.
28
+
By only committing to a swap if a certain logic returns true, Catalyst opens up for a host of new cross-chain applications. Developers can set any condition which can be programmed into a smart contract to determine whether or not to commit to the swap. If not, the swap reverts back to the sending chains.
29
29
30
30
Examples of use cases for logic dependent swaps:
31
31
@@ -34,8 +34,8 @@ Examples of use cases for logic dependent swaps:
34
34
- Governance fee collection: Send fees from a chain and only commit to the transfer if it can be exchanged at favorable rates.
35
35
- Rebalance WBTC between AAVE deployment: Only commit to the rebalance if the rate on the destination chain is higher than the sending chain.
36
36
37
-
Underwriting is conditional on the configured dependent logic. As a result, underwriter will continously try to underwriter swaps if the conditions may change over time.
37
+
Underwriting is conditional on the configured dependent logic. As a result, underwriter will continuously try to underwriter swaps if the conditions may change over time.
38
38
39
-
## Liquidity boostrapping pools (LBPs)
39
+
## Liquidity bootstrapping pools (LBPs)
40
40
41
41
Liquidity Bootstrapping Pools (LBPs) are pools that allow for dynamic changes in token weighting over time. The pool owner determines the starting and end weights and times, and has the ability to pause swaps. LBPs use a weighted math model that gradually adjusts the token price until it reaches market equilibrium.
Copy file name to clipboardexpand all lines: src/content/docs/relayer/setup.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Setting up a Relayer"
3
-
description: "Setting up the Generalised Relayer is easy for everyone. After installing Docker, the relayer can be installed by pulling the generalised-relayer repo and then configuring the appropiate settings. Fund the relayer and you are off to the races."
3
+
description: "Setting up the Generalised Relayer is easy for everyone. After installing Docker, the relayer can be installed by pulling the generalised-relayer repo and then configuring the appropriate settings. Fund the relayer and you are off to the races."
4
4
sidebar:
5
5
order: 3
6
6
---
@@ -88,11 +88,11 @@ where `0xf2d04...23d9` is your privatekey.
88
88
89
89
:::tip[Private Key Format]
90
90
A proper private key begins with **0x**. Metamask does not add 0x to the front of the privatekey and you may have to do that yourself.
91
-
The privatekey should be 64 charactors long without 0x and 66 charactors long with 0x.
91
+
The privatekey should be 64 characters long without 0x and 66 characters long with 0x.
92
92
:::
93
93
94
94
:::caution
95
-
Do not use this private key for other applications as it could interfear with the operation of the relayer wallet. Use a dedicated private key for the relayer to ensure proper operation.
95
+
Do not use this private key for other applications as it could interfere with the operation of the relayer wallet. Use a dedicated private key for the relayer to ensure proper operation.
Copy file name to clipboardexpand all lines: src/content/docs/resources/audit-whitepaper.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Audits & Whitepaper"
3
-
description: "Catalyst contracts has been audited a total of 6 seperate times, with Generalised incentives and Catalyst both having been audited thrice. Catalyst has published 1 Whitepaper: Asynchronous Autonomous Market Making via a Unit of Liquidity"
3
+
description: "Catalyst contracts has been audited a total of 6 separate times, with Generalised incentives and Catalyst both having been audited thrice. Catalyst has published 1 Whitepaper: Asynchronous Autonomous Market Making via a Unit of Liquidity"
Copy file name to clipboardexpand all lines: src/content/docs/underwriter/server-requirements.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
title: "Server Requirements"
3
-
description: "Underwriting is dependent on running a relayer and requires slighly higher specifications."
3
+
description: "Underwriting is dependent on running a relayer and requires slightly higher specifications."
4
4
sidebar:
5
5
order: 2
6
6
---
7
7
8
-
Underwriting requres running a relayer:
8
+
Underwriting requires running a relayer:
9
9
10
-
1. The relayer acts as a data engine for the Underwriter. It collects everything related to relaying. It has both packages needed to get relevant underwrite infromation and the bounty which helps with evaluating if underwriting is worth it.
10
+
1. The relayer acts as a data engine for the Underwriter. It collects everything related to relaying. It has both packages needed to get relevant underwrite information and the bounty which helps with evaluating if underwriting is worth it.
11
11
2. The underwriter is very reliant on the underwritten swaps getting relayed. As a result, it needs to be able to force some packages to be relayed.
12
12
13
13
We recommend running the underwriter on the same VPS as the relayer. Underwriting requires a high degree of stability and as a result, the requirements are slightly higher:
Copy file name to clipboardexpand all lines: src/content/docs/underwriter/underwriting-swaps.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ The bought finality risk is the following:
28
28
- If this happens the underwriter loses 100% of their fronted tokens.
29
29
- The underwriter can recover part of their collateral if they expire their own underwrite.
30
30
3. The underwriter also pays gas to execute the logic associated with the user’s swap. To underwrite a swap is conditional on executing the logic. There is not an associated gas payment included in the underwrite incentive and it will have to also cover the gas cost.
31
-
- If the underwriter evaluator is unable to correctly asses the profitability of underwrites, it could underwrite swaps such that it is not truely profitable.
31
+
- If the underwriter evaluator is unable to correctly asses the profitability of underwrites, it could underwrite swaps such that it is not truly profitable.
32
32
4. The messaging bridge finalises the swap within the configured max time. If the message is not relayed within the configured max time, the underwrite may be expired.
33
33
- If this happens the underwriter loses 100% of their fronted tokens.
34
34
- The underwriter can recover part of their collateral if they expire their own underwrite.
@@ -76,10 +76,10 @@ With these information, it can both validate swaps by cross-examining the packag
76
76
:::danger[Validate!]
77
77
`underwrite(...)` is very unlikely to revert. It will generally accept any information and _underwrite_ whatever swap is proposed. But if there is not a messaging bridge hit on the underwrite the fronted tokens will not be refunded.
78
78
79
-
It is important to throughly verify that swaps before underwriting to ensure the fronted underwrite capital is refunded otherwise there may be a loss of funds.
79
+
It is important to thoroughly verify that swaps before underwriting to ensure the fronted underwrite capital is refunded otherwise there may be a loss of funds.
80
80
:::
81
81
82
-
### Risk Migration implementaitons
82
+
### Risk Migration implementations
83
83
84
84
The [reference underwriter](/underwriter/setup/) has built-in risk migrations. Below is a list of the currently implemented risk management features:
0 commit comments