---
description: TLDR;
---

# DYOR Guide

### How to check project fairness

#### Raffle

[https://codepen.io/FlipnLabs/pen/bGKPmza?editors=0010](https://codepen.io/FlipnLabs/pen/bGKPmza?editors=0010)

```
// Raffle Provably Fair Algo

const ticketsAmount = 1000; // 1000 tickets
const public_seed =
    "5faeebc06078ed03979a9efc914f4af458919f118848d6403445f8ba4caf6b1f";

// secret
const eos_block_id =
    "082332b803efcd4df8578f2f23e7141353074b31a6c7af77ea05293e91bc9faf"; 

// https://cryptojs.gitbook.io/docs/#hmac
const hmac = CryptoJS.HmacSHA256(eos_block_id, public_seed); 

const outcomeHash = hmac.toString(CryptoJS.enc.Hex);
// => ee8bc8151d4348590fc5cdbb4c1b0be02fa2d4c92bcf0d3e4aec4ac82b1a138f

const slice = outcomeHash.substr(0, 8);
// => ee8bc815

const random = parseInt(slice, 16) / 0xffffffff;
// => 0.9318203977150424

const result = Math.floor(random * ticketsAmount) + 1;

const outcome = Math.min(maxTickets, result);

```

#### Coinflip

[https://codepen.io/FlipnLabs/pen/QWxXZZm?editors=0010](https://codepen.io/FlipnLabs/pen/QWxXZZm?editors=0010)

#### Duel

[https://codepen.io/FlipnLabs/pen/YzvoJjw?editors=0010](https://codepen.io/FlipnLabs/pen/YzvoJjw?editors=0010)



### How to check buybacks and burn

On flippin.money - Go to Fairness Tab - FLIP Buybacks.

<figure><img src="https://580013452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ClLkx8GRFZo77mQrpQF%2Fuploads%2FdXQ1wH4aCfTKVbv9Vbab%2FScreen%20Shot%202023-02-15%20at%201.57.54%20PM.png?alt=media&#x26;token=84a86674-1b45-46c3-a9f3-0026715c5a36" alt=""><figcaption><p>FLIP Buybacks/Treasury</p></figcaption></figure>

Before coin launch - Treasury Address: 0x4A0eE640239741EAd1f051C4acf784722C9989Ed

After coin launch - Buyback contract: TBA&#x20;

