From d319b9c26bec52d29bb60c84240ce3e2d6832ac9 Mon Sep 17 00:00:00 2001 From: Ken Lau Date: Thu, 28 Aug 2025 00:13:49 +0800 Subject: [PATCH] fixed: spec update . --- khor/spec/0_oracle/spend.md | 3 +-- khor/spec/1_swap_intent/spend+mint_withdraw_publish.md | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/khor/spec/0_oracle/spend.md b/khor/spec/0_oracle/spend.md index 24deadf..47309da 100644 --- a/khor/spec/0_oracle/spend.md +++ b/khor/spec/0_oracle/spend.md @@ -4,8 +4,7 @@ ## Datum -- `app_oracle`: PolicyId -- `node_pub_key`: List +- `vault_oracle`: PolicyId - `vault_script_hash`: ByteArray, - `swap_intent_script_hash`: ByteArray, - `operator_key`: VerificationKeyHash diff --git a/khor/spec/1_swap_intent/spend+mint_withdraw_publish.md b/khor/spec/1_swap_intent/spend+mint_withdraw_publish.md index 914daf7..206f99a 100644 --- a/khor/spec/1_swap_intent/spend+mint_withdraw_publish.md +++ b/khor/spec/1_swap_intent/spend+mint_withdraw_publish.md @@ -7,8 +7,8 @@ ## Datum - `account_address`: Address -- `amount`: `MValue` - marking the swap value -- `swap_pair`: (PolicyId, AssetName) +- `from_amount`: `MValue` +- `to_amount`: `MValue` ## User Action - Spend @@ -34,7 +34,6 @@ - `SwapIntent` input datum is correspond to user output amount - `SwapIntent` input datum is correspond to vault - `vault` change = `vault` input - batched swaped amount, output back to `vault` address - - output fee to `operator` - oracle input with datum - verify signatures and keys