Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions khor/spec/0_oracle/spend.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

## Datum

- `app_oracle`: PolicyId
- `node_pub_key`: List<VerificationKey>
- `vault_oracle`: PolicyId
- `vault_script_hash`: ByteArray,
- `swap_intent_script_hash`: ByteArray,
- `operator_key`: VerificationKeyHash
Expand Down
5 changes: 2 additions & 3 deletions khor/spec/1_swap_intent/spend+mint_withdraw_publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down