Deposits
Last updated
Last updated
The Omni application uses / to offer gasless deposits of USDC with a flat $0.1 fee.
Instead of requiring users to pay gas to deposit funds into the platform, Omni simply has users sign a message to allowing the platform to withdraw a specific amount of tokens from the user's account. This architecture allows Omni to cover the gas needed to move tokens into the platform, while charging a flat $0.1 fee per deposit.
The flow of deposits is as follows:
User determines how many tokens that they want to deposit by interacting with the Omni frontend.
The relays this information to the , which verifies that the user's is valid then creates a message for the user to sign.
Once the user signs the gasless message permitting the platform to withdraw the specified number of tokens from their account, the relays this signed permit to the Variational protocol's .
The within the creates a new for the user, and deposits the user's funds into that settlement pool.
Once the within the has confirmed that the transaction has landed and funds have moved to the smart contract, it informs the of the updated user account balance.
The reflects the updated state of the , crediting the user's account with funds (minus $0.1 fee).