-
Mint Oracle NFTs
- Mint oracle nft
- Mint DEX oracle book nft
- Mint Account balance nft
- Mint 2 * Dex Net Deposit fts
-
Setup App oracle
- Send oracle nft to app oracle validator
-
Setup DEXOrderBook utxo
- Send nft to dex order book with empty merkle tree
-
Setup DexAccountBalnace utxo
- Send nft to dex order book with empty merkle tree
-
Setup DexAccountBalance utxos
- 2 * Send nft to dex order book with empty merkle tree
-
Register all stake certs
-
Deposit
- Mint AppDepositRequest token to validator
- Send value to AppVault
-
Internal - process deposit
- Burn AppDepositRequest token
- Insert / add balance to merkle tree at DexAccountBalance
-
Withdraw
- Remove / reduce balance to merkle tree at DexAccountBalance
- Withdraw value from vault
-
Internal - prepare order book utxos
- Consume merkle tree, divide all order into single utxo at HydraOrderBook
-
Internal - prepare account balance utxos
- Consume merkle tree, divide all account balance into single utxo at HydraAccountBalance
-
Internal - process deposit (DexAccountBalance)
- Consume merkle tree, merge all account balance into utxo at HydraAccountBalance
-
Place order
-
Internl - Process order
-
Internl - Fill order
-
Withdrawal
-
Process withdrawal
-
Combine utxos for HydraOrderBook
-
Combine utxos for HydraAccountBalance
-
Hydra Init
-
Commit utxos into hydra
-
Close & Fanout