solana-program-library/binary-oracle-pair
Tyera Eulberg 7c6235d9e7
Bump token to v3.5.0 and ata to v1.1.1 (#3430)
2022-08-04 01:09:38 -06:00
..
program Bump token to v3.5.0 and ata to v1.1.1 (#3430) 2022-08-04 01:09:38 -06:00
README.md Binary oracle implementation (#1347) 2021-03-18 18:18:20 +01:00

README.md

Simple Oracle Pair Token

  1. pick a deposit token
  2. pick the decider's pubkey
  3. pick the mint term end slot
  4. pick the decide term end slot, must be after 3

Each deposit token can mint one Pass and one Fail token up to the mint term end slot. After the decide term end slot the Pass token converts 1:1 with the deposit token if and only if the decider had set pass before the end of the decide term, otherwise the Fail token converts 1:1 with the deposit token.