sundae-v3
@SundaeSwap-finance
• v0.1.0About this Protocol
Protocol for the user-facing actions of Sundae V3
Parties
The participants involved in this protocol's transactions.
Environment
Configuration values required to execute this protocol's transactions.
Transactions
The transactions defined in this protocol, with their parameters, inputs, and outputs.
submit_swap
Post a pool-targeted swap order. Recommended wallet-facing flow.
Diagram
Parameters
Inputs
Outputs
submit_withdrawal
Post a pool-targeted withdrawal order. Recommended wallet-facing flow.
Diagram
Parameters
Inputs
Outputs
submit_deposit_any_pool
Post an untargeted deposit order to the Sundae order script. For wallet-facing integrations, prefer `submit_deposit`. Notes: - `order_ada` should cover the order's non-deposit ADA, including min-UTxO needs and enough room for `max_protocol_fee`. - `owner_key_hash` should be the owner's stake credential hash for wallet orders. - If one side of the deposit is ADA, pass empty policy/name for that side.
Diagram
Parameters
Inputs
Outputs
cancel_order
Cancel an existing order and return its funds to `User`. `owner_key_hash` should match the order datum owner key hash for simple signature-owned wallet orders.
Diagram
Parameters
Inputs
Outputs
submit_swap_any_pool
Post an untargeted swap order to the Sundae order script. For wallet-facing integrations, prefer `submit_swap`. Notes: - `order_ada` should cover the order's non-offer ADA, including min-UTxO needs and enough room for `max_protocol_fee`. - `owner_key_hash` should be the owner's stake credential hash for wallet orders. - For ADA offers, pass empty policy/name and the amount in `offer_amount`.
Diagram
Parameters
Inputs
Outputs
submit_withdrawal_any_pool
Post an untargeted withdrawal order to the Sundae order script. For wallet-facing integrations, prefer `submit_withdrawal`. Notes: - `order_ada` should cover min-UTxO needs and enough room for `max_protocol_fee`. - `owner_key_hash` should be the owner's stake credential hash for wallet orders. - `lp_policy` / `lp_name` identify the LP asset being withdrawn.
Diagram
Parameters
Inputs
Outputs
submit_deposit
Post a pool-targeted deposit order. Recommended wallet-facing flow.
Diagram
Parameters
Inputs
Outputs
Profiles
Pre-configured sets of environment and party values for different deployment targets.