Validators
Written in Aiken, Metera Validators remove trust from the middle man when it comes to asset management.
The smart contract will always have one script UTxO per portfolio. This UTxO will hold the tokens that users deposit, as well as it will keep account of minted MTK tokens, token weights, accumulated fees, and other settings.
In order to interact with the index, users will place "orders". These are script UTxOs linked to a index UTxO through a special token (the "Order token"). These orders will eventually be processed, one by one and in slot time order, by a designed agent ("The Processor") and the interaction executed on the portfolio UTxO. This approach avoids congestion issues when users try to interact with the contract at the same time.
This whole section details at high level what is validated on-chain with Metera Protocol smart contracts.
Last updated