diff --git a/CHANGELOG.md b/CHANGELOG.md index 84f030f53..7c92b0b85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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) diff --git a/src/utils/blockchain/contracts.testnet.ts b/src/utils/blockchain/contracts.testnet.ts index db5081116..9e9efb5a8 100644 --- a/src/utils/blockchain/contracts.testnet.ts +++ b/src/utils/blockchain/contracts.testnet.ts @@ -147,4 +147,8 @@ export const contracts = { abi: tokenAbi, blockNumber: 1606431, }, + NFT_tier1: { + address: '0xC5452Dbb2E3956C1161cB9C2d6DB53C2b60E7805', + abi: tokenAbi, + }, }; diff --git a/src/utils/blockchain/contracts.ts b/src/utils/blockchain/contracts.ts index 7215b681b..0c3ca3501 100644 --- a/src/utils/blockchain/contracts.ts +++ b/src/utils/blockchain/contracts.ts @@ -147,4 +147,8 @@ export const contracts = { abi: tokenAbi, blockNumber: 3100260, }, + NFT_tier1: { + address: '0x857a62c9c0b6f1211e04275a1f0c5f26fce2021f', + abi: tokenAbi, + }, }; diff --git a/src/utils/whitelist.ts b/src/utils/whitelist.ts index 2eabc0732..77abfbfe1 100644 --- a/src/utils/whitelist.ts +++ b/src/utils/whitelist.ts @@ -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);