NYXERON

Money flow

Where a dollar goes, from tapping Buy to holding the share.

One drink makes four stops. Each stop uses a part of NEAR.

Sign in: a NEAR account of your own

Google or email sign-in gives every player a NEAR account through Privy's embedded wallet. Our server never has the player's key.

Order: USDC, no gas

The game asks the server for a price quote for that drink: the party, the guest, the stock, the quantity, the price, the wholesale and an expiry. The server signs it, and it is valid for 60 seconds.

The player signs one action, a USDC ft_transfer_call to the NYXERON contract carrying the quote. They sign it as a NEP-366 meta-transaction, and our relayer submits it and pays the gas.

The relayer forwards only three kinds of action, each signed by the player: a USDC payment to our contract, the exact USDC transfer of the player's own cash-out, and a host's claim_margin. Each carries at most 1 yoctoNEAR. The server can never move a player's dollars on its own.

Split: the contract checks and divides

The contract checks the quote: the signature, this contract, not used before, not expired, the right buyer, and a price between wholesale and 3× wholesale. If anything is off, it refunds the whole payment and says why.

If everything holds, it sends the margin to the party's host at once and keeps the wholesale in the party's pot. The guest is recorded as owed the units.

Settle: the shares arrive

About 90 seconds after the party ends:

  1. Release: the party's pot goes to the treasury.
  2. Buy and mint: the stock tokens are bought on Robinhood Chain, and the contract mints the matching units to its warehouse. The purchase's transaction is the proof.
  3. Settle: the contract moves the units from the warehouse to each guest, each up to what they are owed and never more.

The units are NEP-245 multi tokens in the guest's own account, 1 unit = 0.001 share.

 Guest (own NEAR account)        NEAR                                     Robinhood Chain
 Buy a drink (signed, no UI) ─► relayer ─► USDC ft_transfer_call
                                          └─► NYXERON contract ─► margin to the host
                                                               └─► wholesale to the party's pot
 Party ends                      pot ─► treasury ─► warehouse (Chain Signatures) ─► swap USDG → stock token
                                 mint_warehouse (proof = the swap) + settle ─► NEP-245 units in each guest's account

Money in and out

Add money and Cash out go through NEAR Intents (1Click), from and to almost any chain, straight into and out of the player's own NEAR account. There is no custodian in between.

  • Add money: pick an asset and a chain, and get a quote. You send to a deposit address and receive USDC in your NEAR account. If something goes wrong, the refund goes back to an address you give on the source chain.
  • Cash out: from $1 to $1,000 of USDC, to your address on another chain. You sign the USDC transfer to 1Click's deposit address, and a failed swap is refunded to your NEAR account.

1Click has no testnet. On testnet both are dry runs against mainnet: you get real numbers and nothing is sent.

On this page