README.md
|
contract
    Cargo.toml
    src
        lib.rs
test.sh

# Santa Token

## Abstract

Santa Token is a fungible token token run on NEAR Protocol. It was launched on December 1st and is available for trading until January 1st, 2023. Tokens can be obtained during an airdrop or can be mined.

On January 1st all tokens can be burned and swap to USDT, NEAR, NFT, or increased staking APY for a year in the HERE app.

A total of 400,000 tokens have been issued and another 600,000 can be earned through transfers to friends. Initially, all tokens are distributed to contest partners, who in turn conduct airdrop to their users.

## Earn

Santa Token can be earned. To do this, you just need to transfer it to a friend by phone number. For each transfer, you and your friend will earn 50 Santa tokens. We think this is a great way to surprise your friends and give them a real Christmas miracle.

https://phone.herewallet.app

## Handing out gifts

Santa Token has a transparent draw algorithm. All prizes will be handed out based on the results of a decentralized randomization call on the smart contract.

At 12:00 PST, the `happy_new_year()` contract method will become available. It will freeze all transfers and generate a random number via  `env::random_seed()` call. You can see this number by calling `get_seed()`.

Then all users will be sorted by hash(account\_id+seed) and the sequence number of each of their tokens will be superimposed on the prize number from this table. Then each of the sponsors will be given an instruction to whom and how many prizes to send.

Table with prizes is uploaded to IPFS by link and is not changeable. Any user will be able to check their prizes after the contest ends.

## Example

prize table

1 USDC\
0.2 NEAR\
1 USDC\
NFT HERE

**Bob and Alice participated in the contest:**

|                          | Bob                                                              | Alisa                                                            |
| ------------------------ | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| account id               | bob.near                                                         | alisa.near                                                       |
| Token balance            | 1 SANTA                                                          | 3 SANTA                                                          |
| SEED                     | **123**                                                          | **123**                                                          |
| sha256(account\_id+SEED) | 06e1966d9df7d550f3a3dc71d801afb44dbaa20d1c19cf9405655c6fdacdec0a | 6b6183a63e3dc66cf472a36a9b7b811c44026797cd0b36263f261b6be182bc1d |

**Order:**

1. Bob (06...)
2. Alisa (6b...)

1 USDC <> BOB\
0.2 NEAR <> ALISA\
0.5 USDC <> ALISA\
NFT HERE <> ALISA

## Partners Table

|                                            | Token allocation | USDC | NFT | APY+  | NEAR |
| ------------------------------------------ | ---------------- | ---- | --- | ----- | ---- |
| [HERE Wallet](http://herewallet.app/)      | 100000           | 1000 | 50  | 5000% | 0    |
| [Tonic DEX](https://app.tonic.foundation/) | 50000            | 500  | 50  | 0     | 100  |
| [NERA Foundation](https://near.org/)       |                  |      |     |       |      |
| Keypom                                     |                  |      |     |       |      |
| Paras                                      |                  |      |     |       |      |
| Encrypted                                  |                  |      |     |       |      |
| LNC                                        |                  |      |     |       |      |

### Contract code

https://github.com/here-wallet/santa-token

### Contact

https://explorer.near.org/accounts/santa_token.near
