Admin Flow and Setup
Last updated
Last updated
Before registering a ride (deployment activity), the admin does the following:
Deploy and register a new token type for each ride ticket.
Set the type of capital tokens which users deploy, and the type of strategy tokens that users receive.
Determine the price and slippage at which capital tokens are exchanged for strategy tokens. Users sign a limit order confirming their acceptance of these requirements when they join a ride.
Deploy a Pool Manager smart contract with the following functions:
Mint and Sell ride tickets
Mint ride ticket tokens, deposit them to the Multipli Contract, and submit an onchain limit order to sell them for capital tokens.
Configure price
For example : 1 BTC = 1xBTC
Ride departure
Execute a specific onchain strategy. Withdraw users' funds, that is, the agreed capital tokens, from the Multipli smart contract, and trade them in an onchain DeFi contract for strategy tokens.
These are deposited back to Multipli smart contract, and the Pool Manager submits an onchain limit order to sell the strategy tokens in exchange for users' ride tickets. If the strategy token price is too high and is out of the slippage range that users accepted, the departure fails, and the ride ticket tokens are deposited back to Multipli smart contract and sold back to the passengers.
Ride cleanup
Withdraw the ride ticket tokens from the Multipli smart contract and burn them.
Set the price and slippage for the strategy execution in the Pool Manager smart contract.