Module deposit

Source
Expand description

Specification for deposit transaction:

Consumes:

  • UTXO at the validator address
  • UTXOs at payment address that have tokens to be deposited

Produces:

  • UTXO at the validator address with increased token amount
  • UTXO at the payment address with change

Reference UTOXs:

  • Version Oracle Validator script
  • Reserve Auth Policy script
  • Reserve Validator script
  • Illiquid Supply Validator script

Functionsยง

deposit_to_reserve
Spends current UTXO at validator address and creates a new UTXO with increased token amount