Deposit Ethereum for Casino Tokens

Deposit Process

  • User initiates a deposit by sending the '/deposit' command or clicking the 'deposit' button in the menu.

  • The bot prompts the user to enter the amount of ETH they wish to deposit.

  • Upon receiving the amount, the bot calculates the equivalent casino tokens, considering the current ETH price and conversion rate.

  • The bot generates a detailed confirmation message, displaying the deposit amount, gas fees, total cost in ETH and USD, and the equivalent casino tokens. This message includes an option to confirm or cancel the deposit.

  • If the user confirms, the bot initiates the transaction process.

    • The user’s private key is decrypted from the databases.

    • A transaction is created and signed using the house's Ethereum address and the user's private key.

    • The transaction includes a hex-encoded message specifying the deposit details for transparency.

    • The bot estimates the gas required for the transaction and adjusts the gas limit accordingly.

    • Upon successful transaction submission, the bot monitors the transaction until it is confirmed on the Ethereum blockchain.

  • Once confirmed, the user's account is credited with the equivalent casino tokens, and the bot sends a confirmation message.

Last updated