Register a New Ride
In order to register a new DeFi Pooling Ride, the Admin is required to:
  1. 1.
    Deploy and register a new token type for each Ride ticket.
  2. 2.
    Set the type of Investment tokens that the users will invest in and the type of Strategy tokens that the users will receive.
  3. 3.
    Determine the price and slippage at which Investment tokens will be exchanged for Strategy tokens. The users will sign a limit order confirming their acceptance of these requirements when they join a Ride.
  4. 4.
    Deploy a Pool Manager smart contract with the following functions:
    4.1 Mint and Sell Ride tickets
    This step mints Ride ticket tokens, deposits them to StarkEx, and submits an on-chain limit order to sell them for Investment tokens.
    4.2 Configure price
    This step sets the price and slippage as determined at Step 3.
    4.3 Ride departure
    This step executes a specific on-chain strategy. It withdraws the users' funds (i.e., the agreed Investment token/s) from the StarkEx smart contract and trades them in an on-chain DeFi contract for Strategy tokens.
    These are deposited back to StarkEx, and the Pool Manager submits an on-chain limit order to sell the Strategy tokens in exchange for the users' Ride tickets. If the Strategy token price is too high and is out of the slippage range that the users accepted, the departure fails, and the Ride ticket tokens are deposited back to StarkEx and sold back to the passengers.
    4.4 Ride cleanup
    Withdraws the Ride ticket tokens from StarkEx and "burns" them.
  5. 5.
    Set the price and slippage for the strategy execution in the Pool Manager smart contract.
Copy link