Skip to content

Commit

Permalink
added nft tier to whitelisted #414
Browse files Browse the repository at this point in the history
  • Loading branch information
creed-victor committed Feb 25, 2021
1 parent 5c0b864 commit a12614a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v0.4](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/compare/v0.3.21...v0.4)

> 25 February 2021
- reworked whitelisting #414 [`#421`](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/pull/421)
- Issue #389 - Change connected wallet blue circle with address blockie [`#409`](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/pull/409)
- Added changelog [`d2e73dc`](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/commit/d2e73dc88c822540db67bd5b2aeffee836f6e644)

#### [v0.3.21](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/compare/v0.3.20...v0.3.21)

> 19 February 2021
Expand Down Expand Up @@ -122,8 +130,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- trading dialog warning [`#314`](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/pull/314)
- fixes #329, center text. [`#329`](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/issues/329)
- updated banners [`a94d9f7`](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/commit/a94d9f7004f6ec68a923a7df88761469ff61ef2e)
- join waitlist to sale banner (svg) [`9aaf9b3`](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/commit/9aaf9b3c0420d10bd3240fd09915ae17bb7b2117)
- changed link to banner [`2129a80`](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/commit/2129a80003f70e0ea0d7cb084ea04a2e8d2e401a)
- #313 join waitlist to sale banner (svg) [`9aaf9b3`](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/commit/9aaf9b3c0420d10bd3240fd09915ae17bb7b2117)
- #350 changed link to banner [`2129a80`](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/commit/2129a80003f70e0ea0d7cb084ea04a2e8d2e401a)

#### [v0.3.10](https://github.com-creed-victor/DistributedCollective/Sovryn-frontend/compare/v0.3.9...v0.3.10)

Expand Down
4 changes: 4 additions & 0 deletions src/utils/blockchain/contracts.testnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,8 @@ export const contracts = {
abi: tokenAbi,
blockNumber: 1606431,
},
NFT_tier1: {
address: '0xC5452Dbb2E3956C1161cB9C2d6DB53C2b60E7805',
abi: tokenAbi,
},
};
4 changes: 4 additions & 0 deletions src/utils/blockchain/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,8 @@ export const contracts = {
abi: tokenAbi,
blockNumber: 3100260,
},
NFT_tier1: {
address: '0x857a62c9c0b6f1211e04275a1f0c5f26fce2021f',
abi: tokenAbi,
},
};
5 changes: 5 additions & 0 deletions src/utils/whitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ class Whitelist {
public async getContracts(address: string) {
address = address.toLowerCase();

const nft = await contractReader
.call('NFT_tier1', 'balanceOf', [address])
.then(e => Number(e));
if (nft) return true;

const sov = await contractReader
.call('SOV_token', 'balanceOf', [address])
.then(e => Number(e) / 1e18);
Expand Down

1 comment on commit a12614a

@vercel
Copy link

@vercel vercel bot commented on a12614a Feb 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.