Tensor
  • 👋Welcome
    • ⚡About
    • 🔗Links
    • 🛣️Roadmap
    • ⭐Rewards
      • 4️⃣Season 4!
      • 🤝Referrals!
      • 3️⃣Season 3!
      • 👾End of Season 2 + Tensorians are coming!
      • 2️⃣Season 2!
  • 👾Tensorians
    • 🖖Tensorians Manifesto
  • 📈TRADE
    • 🪙Fees & Royalties
    • 💻API & SDK
    • ❌Troubleshooting
      • 🙋Share an Error
      • 😭Doesn't load - what do?
      • 🔍Verify an NFT Mint
      • 🤔Weird Phantom Transactions
      • 💎Rarity
    • 🔀Get Started with Tensor's AMM
      • 🎁Buy or Bid
      • 🤑Sell or List
      • 🔁Market-Make
      • ⛔Closing an Order
      • 🛑Purchase Caps
      • 📺Video Tutorials
    • 🎲YOLO Buy
    • ↔️Shared Escrow
  • PROVIDE LIQUIDITY
    • 🤔Why Provide Liquidity?
    • 🌊How to Provide Liquidity
    • ✏️Market-Making Example
    • 🤑What APY can you expect?
    • 🛑What are the Risks?
    • ⚙️Setting up your Market-Making Order
    • 🔬Advanced Concepts
      • 📈Bonding Curves
      • ⚠️Impermanent Loss
  • 🤝Work with us
    • 🧑‍🎨Creator Portal
      • 📒Claiming or Updating an Existing Collection
      • 📖Verifying a new NFT Collection
      • 📚How to get a Creator Page?
    • 🎨Creator Partnerships
    • 🤙Contact us
Powered by GitBook
On this page
  • YOLO Buy Features
  • How Does It Work?
  1. TRADE

YOLO Buy

PreviousVideo TutorialsNextShared Escrow

Last updated 1 year ago

With YOLO Buy, you can place a non-refundable bid for a fraction of an NFT's listed price for a chance to win that NFT. The more you bid, the better your odds of winning.

YOLO Buy Features

  • Each time you play, you earn progress toward a free spin

  • Even when you lose, you still win Tensor points based on the size of your bid

  • Odds as low as 1% and as high as 75% are available

  • The user who listed the NFT earns an extra 1.5% when it's purchased via YOLO Buy

  • If you win your YOLO Buy, but the NFT was purchased mid-roll, you win SOL equivalent to the NFT's price

How Does It Work?

Advanced

In the commit phase, a randomness seed is hashed and stored on-chain.

In the reveal phase, that seed is used to compute the outcome and compared to the hash.

The exact code from the contract for calculating outcomeU64 is as follows:

    let secret_hash = hash(secret).to_bytes();
    require!(secret_hash == roll_state.secret_hash, TRollError::BadHash);

    let mut outcome_message = [0; 112];

    let (secret_bytes, user, user_nonce, roll_count, commit_slot) =
        mut_array_refs![&mut outcome_message, 32, 32, 32, 8, 8];

    *secret_bytes = *secret;
    *user = roll_state.user.to_bytes();
    *user_nonce = roll_state.user_nonce;
    *roll_count = roll_state.roll_count.to_le_bytes();
    *commit_slot = roll_state.commit_slot.to_le_bytes();

    let outcome_hash = hash(&outcome_message).to_bytes();
    let outcome_u64 = *bytemuck::from_bytes::<u64>(&outcome_hash[0..8]);

YOLO Buy is not available in all regions

YOLO Buy uses a commit-reveal scheme with a , which means it is verifiably fair on-chain. The underlying math dictates that if you roll with 1% odds, you should win on average once every 100 rolls.

📈
🎲
Verifiable Random Function
YOLO Buy example
All Tensor listings under 500 SOL are automatically eligible for YOLO Buy
All your YOLO Buys are on-chain and trackable in your 'History' tab