Gnosis Developer Portal Conditional Tokens

Gnosis Developer Portal Conditional Tokens

  • Introduction
  • Use Case
  • Documentation
  • Tutorials
  • Support

›Conditional Tokes Tutorial

Conditional Tokes Tutorial

  • Introduction
  • Setup
  • Conditions
  • Bit Arrays
  • Basic Outcome Collections
  • Positions
  • Splitting From Collateral
  • Splitting Unions
  • Combining Outcome Collections
  • Splitting to Deeper Positions
  • Merging Positions
  • Transferring to EOA addresses
  • Transferring to Contract Addresses
  • Reporting Payouts
  • Basic Redemption
  • Deeper Redemptions
  • Reporting Scalar markets
  • Scalar Redemptions

Deeper Redemptions

At this point, your account should also hold some deeper positions; (A) & (hi) and (A) & (lo). Since the outcome slot (A) does not receive any of the payout, you can attempt to redeem (A) & (hi) for (hi) tokens, but you will get 0 (hi) tokens because the payout for (A) is 0.

Try calling redeemPositions() replacing the zeros in the parentCollectionId parameter with the collection ID for (hi) and the indexSets for A, [1].

Calling balanceOf() or balanceOfBatch() you should notice that the balance of (A) & (hi) has been reduced to 0, but the balance of (hi) has not increased. This is because (A) does not receive any of the payout.


Next we'll learn about reporting scalar markets.

← Basic RedemptionReporting Scalar markets →
Gnosis Ltd.
ImprintCopyright
© 2020 Gnosis LTD
Privacy Policy
Copyright © 2025 Gnosis LTD