These include the StarkEx services, the StarkEx smart contract, and a STARK verifier smart contract. StarkEx:
- batches multiple DeFi Pooling operations from different users
- updates the off-chain state
- registers the new state on-chain along with a proof attesting to the validity of the new state
It manages the users' signed transactions and also matches and settles trades between users and the on-chain Pool Manager smart contract.
It executes the on-chain strategy for the Pool of funds collected from the Ride passengers. This contract coordinates between the DeFi contract in order to execute the strategy, and the StarkEx contract, in order to exchange funds with the Ride passengers.
A new Ride is configured to execute a specific strategy at a specific price.
Multiple users join a Ride by buying Ride tickets.
The on-chain Pool Manager smart contract withdraws the passengers' funds and trades them for Strategy tokens. The trade succeeds only if the trading price is lower or equal to the price defined at step 1.
Passengers trade their Ride ticket for Strategy tokens.