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: README.md
-4Lines changed: 0 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,18 +7,14 @@ This is a forwarder contract that forwards the swap providers transaction (LiFi,
7
7
- Data Logging - this is essential for attribution and linking on-chain and off-chain data
8
8
- Fee Splitting - this allows us to split the fees in-flight and flexibility to change fees on a per client basis
9
9
- Data validation - this provides high-security as only thirdweb originated swaps with untampered data can use this contract
10
-
- exit point for contract calls - for LiFi, they can only guarantee toAmount for contract calls. This allows use to add a contract call to transferEnd that forwards the end funds to the user
11
10
- Stateless - this will be deployed on many different chains. We don’t want to have to call addClient, changeFee, addSwapProvider, etc on every single chain for every change. Therefore, this should not rely on data held in the state of the contract, but rather data passed in
12
11
13
12
[PayGateway Reference](img/gateway.png)
14
13
15
-
[PayGateway With Transfer End](img/gateway-transfer-end.png)
16
-
17
14
## Features
18
15
19
16
- Event Logging
20
17
- TokenPurchaseInitiated logs the necessary events attribution and link off-chain and on-chain through clientId and transactionId. We use bytes32 instead of string for clientId and transactionId (uuid in database) because this allows recovering indexed pre-image
21
-
- TokenPurchaseCompleted logs the transfer end in case of a contract call and can be used for indexing bridge transactions by just listening to our Thirdweb PayGateway deployments
22
18
- FeePayout logs the fees distributed among the payees
23
19
- Fee Splitting
24
20
- supports many parties for fee payouts (we only expect us and client). It also allows for flexible fees on a per client basis
0 commit comments