EYWA
Search…
Zap Transactions
Zap transactions is a solution that allows to execute complex operations of buying / selling token X such as in the following cases fast and conveniently:
V2 POOL CHAIN (V2PC) - a network where Uniswap V2 pool is located. Such pool allows users to make token swaps via trading with the V2 pool where tokens are reserved;
ANYCHAIN (ACHAIN) - a designation of any supported network;
STABLE - any supported stablecoins except USDT. Please note that V2 pool is currently done with USDT and eUSDT for demonstration purposes, therefore, USDT is a separate element on the schemes below.
Buying token X:
  1. 1.
    Buying token X in V2 Pool chain by USDT from any supported chain (USDT ACHAIN β†’ HUB β†’ V2PC);
  2. 2.
    Buying token X in any supported chain by USDT from any supported chain (ACHAIN β†’ HUB β†’ V2PC β†’ ACHAIN);
  3. 3.
    Buying token X in any supported chain by a stablecoin from any supported chain (USDT ACHAIN β†’ HUB β†’ V2PC β†’ ACHAIN);
Selling token X:
  1. 1.
    Selling token X from V2 pool chain for USDT in any supported chain (V2PC β†’ HUB β†’ USDT ACHAIN);
  2. 2.
    Selling token X located in V2 pool chain for a stablecoin in any supported chain (V2PC β†’ HUB β†’ ACHAIN);
  3. 3.
    Selling token X from any supported chain for a stablecoin in any supported chain (ACHAIN β†’ V2PC β†’ HUB β†’ ACHAIN);
  4. 4.
    Selling token X from any supported chain for USDT in any supported chain (ACHAIN β†’ V2PC β†’ HUB β†’ USDT ACHAIN).
The user only has to receive his assets in the destination network without performing any actions to execute the mentioned flows of buying / selling token X in the mentioned complex cases. Zap transactions simplify user experience via charging a commission initially and performing transactions in different networks for the end user without requiring any additional actions from the user side. In order to understand in details how zap transactions work and what actions it performs for the user, consider step by step descriptions of the cases mentioned above:
​
Case 1: Buying token X in V2 Pool chain by USDT from any supported chain
The user wants to buy token X in V2 pool chain by USDT from any of supported chains via using zap transactions mechanism. Token X will be received by the user in V2 pool chain.
Step 1. USDT gets locked in the source chain (ACHAIN) and sUSDT_ACHAIN is synthesized for USDT in Hubchain;
Step 2. sUSDT_ACHAIN is swapped for sUSDT_V2PC in eUSDT pool in Hubchain;
Step 3. sUSDT_V2PC gets bridged (unsynthesized) for USDT on V2 pool chain, where token X is located;
Step 4. USDT is swapped for token X;
Step 5. The user receives token X in the destination network (V2PC).
​
Case 2: Buying token X in any supported chain by USDT from any supported chain
The user wants to buy token X in any of supported chains by USDT from any supported chain via using zap transactions mechanism. Token X will be received by the user in ACHAIN as the destination network.
Step 1. USDT gets locked in the source chain (ACHAIN) and sUSDT_ACHAIN is synthesized for USDT in Hubchain;
Step 2. sUSDT_ACHAIN is swapped for sUSDT_V2PC in eUSD pool in Hubchain;
Step 3. sUSDT_V2PC gets bridged (unsynthesized) for USDT on V2 pool chain, where token X is located;
Step 4. USDT is swapped for token X via V2 pool token X / USDT on V2 pool chain;
Step 5. Token X gets bridged from V2 pool chain by a lock in a Portal contract and a mint of synthetic token X is executed;
Step 6. The user receives token X in the destination network (ACHAIN).
​
Case 3: Buying token X in any supported chain by a stablecoin from any supported chain
The user wants to buy token X in any of supported chains by a stablecoin from any supported chain via using zap transactions mechanism. Token X will be received by the user in ACHAIN as the destination network.
Step 1. The stablecoin gets locked in the source chain (ACHAIN) and sSTABLE_ACHAIN is synthesized for the stablecoin in Hubchain;
Step 2. sSTABLE_ACHAIN is swapped for sUSDT_V2PC in eUSD pool in Hubchain by undergoing the following process: sSTABLE_ACHAIN is added to eSTABLE pool β†’ eSTABLE gets minted β†’ eSTABLE is swapped for eUSDT in eUSD pool β†’ sUSDT_V2PC is removed in eUSDT pool β†’ eUSDT is burnt β†’ sUSDT_V2PC is received;
Step 3. sUSDT_V2PC gets bridged (unsynthesized) for USDT and USDT appears in V2 pool chain;
Step 4. USDT is swapped for token X in V2 pool token X / USDT on V2 pool chain;
Step 5. Token X gets bridged from V2 pool chain by a lock in a Portal contract and a mint of synthetic token X is executed;
Step 6. The user receives token X in the destination network (ACHAIN).
​
Case 4: Selling token X from V2 pool chain for USDT in any supported chain
The user wants to sell token X from V2 pool for USDT in any supported chain via using zap transactions mechanism. USDT will be received by the user in ACHAIN as the destination network.
Step 1. Token X is swapped for USDT in V2 pool token X / USDT on V2 pool chain;
Step 2. USDT gets locked in V2PC and sUSDT_V2PC is synthesized for USDT in Hubchain;
Step 3. sUSDT_V2PC is swapped for sUSDT_ACHAIN in eUSDT pool in Hubchain;
Step 4. sUSDT_V2PC is unsynthesized in Hubchain and USDT appears in the destination chain;
Step 5. The user receives USDT in the destination network (ACHAIN).
​
Case 5: Selling token X located in V2 pool chain for a stablecoin in any supported chain
The user wants to sell token X located in V2 pool for a stablecoin in any supported chain via using zap transactions mechanism. The stablecoin will be received by the user in ACHAIN as the destination network.
Step 1. Token X is swapped for USDT in V2 pool token X / USDT on V2 pool chain;
Step 2. USDT gets locked in V2PC and sUSDT_V2PC is synthesized for USDT in Hubchain;
Step 3. sUSDT_V2PC is swapped for sSTABLE_ACHAIN in eUSDT pool in Hubchain by undergoing the following process: sUSDT_V2PC is added into eUSDT pool β†’ eUSDT is minted β†’ eUSDT gets swapped for eSTABLE in eUSD pool β†’ sSTABLE_ACHAIN is removed in eSTABLE β†’ eSTABLE is burnt;
Step 4. sSTABLE_V2PC is unsensitized in Hubchain and the stablecoin appears in the destination chain;
Step 5. The user receives the stablecoin in the destination network (ACHAIN).
​
Case 6: Selling token X from any supported chain for a stablecoin in any supported chain
The user wants to sell token X located in any of supported chains for the stablecoin in any supported network via using zap transactions mechanism. The stablecoin will be received by the user in ACHAIN as the destination network.
Step 1. Token X gets locked in the source chain (ACHAIN) and token X is synthesized for it in V2 pool chain;
Step 2. Token X is swapped for USDT;
Step 3. USDT gets locked in V2PC and sUSDT_V2PC is synthesized for it in our Hubchain;
Step 4. sUSDT_V2PC is swapped for sSTABLE_ACHAIN in Hubchain by undergoing the following process: sUSDT_V2PC is added into eUSDT pool β†’ eUSDT is minted β†’ eUSDT is swapped for eSTABLE in eUSD pool β†’ sSTABLE_ACHAIN is removed in eSTABLE pool β†’ eSTABLE is burnt;
Step 5. sSTABLE_ACHAIN is unsensitized in Hubchain and the stablecoin appears in the destination chain;
Step 6. The user receives the stablecion on the supported destination network (ACHAIN).
​
Case 7: Selling token X from any supported chain for USDT in any supported chain
The user wants to sell token X located in V2 pool for a stablecoin in any supported chain via using zap transactions mechanism. The stablecoin will be received by the user in ACHAIN as the destination network.
Step 1. Token X gets locked in the souce network and token X appears in V2 pool chain;
Step 2. Token X is swapped for USDT;
Step 3. USDT is locked in V2PC and sUSDT_V2PC is synthesized in Hubchain;
Step 4. sUSDT_V2PC is swapped for sUSDT_ACHAIN in eUSDT pool in our Hubchain;
Step 5. sUSDT_ACHAIN is unsensitized in Hubchain and USDT appears in the destination chain;
Step 6. The user receives USDT in the supported destination network (ACHAIN).
​
Commission
  1. 1.
    Network fee. It is a commission at the phase of sending a transaction that is chosen by the user, for instance, in MetaMask;
  2. 2.
    Pool fee. It is composed out of commision of using the Meta Pool, local pool and Uniswap pool;
  3. 3.
    Pusher fee. This commission includes the network fee of the chains where bridging happens for cross-chain calls and EYWA fee, which the user pays for.
  4. 4.
    Bridge fee.
Copy link