Skip to content

Commit 9cb8a1e

Browse files
authored
Merge pull request #280 from darwinia-network/jay-plo-nft-rewards
Plo nft rewards claim
2 parents 22d0a0d + 8c76333 commit 9cb8a1e

13 files changed

Lines changed: 5274 additions & 3555 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@
3131
"react-responsive": "^8.1.0",
3232
"react-reveal": "^1.2.2",
3333
"react-router-dom": "^5.0.0",
34-
"react-scripts": "2.1.8",
34+
"react-scripts": "4.0.3",
3535
"rimraf": "^2.6.2",
36-
"scrollreveal": "^4.0.7"
36+
"scrollreveal": "^4.0.7",
37+
"web3-utils": "^1.7.1"
3738
},
3839
"devDependencies": {
3940
"gh-pages": "^2.1.1",

src/components/PloBanner/PloBanner.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,14 @@ const PloBanner = () => {
6060
<div className={cx("main")}>
6161
<img alt="..." src={icon01} className={cx("banner-logo")} />
6262
<div className={cx("banner-content")}>
63-
<h5 className={cx("title")}>
64-
<span role="img" aria-label="fire">
65-
🔥
66-
</span>{" "}
67-
We are launching our Parachain Crowdloan on Polkadot.
68-
</h5>
63+
<h5 className={cx("title")}>The Second Batch of Polkadot Parachain Auction has ended.</h5>
6964
<p className={cx("desc")}>
70-
Contribute your DOT to help build a Web3.0 Bridge Hub by joining our crowdloan, unlock RING and KTON
71-
bonus, also BTC and Metaverse limited edition commemorative NFT waiting for you.
65+
Thank you for supporting Darwinia Network! Do not contribute any more DOT at this time. Metaverse NFT
66+
Package rewards can be claimed now!
7267
</p>
7368
</div>
7469
<Link className={cx("banner-link")} to="plo">
75-
<span>Join our crowdloan</span>
70+
<span>Crowdloan Details</span>
7671
</Link>
7772
</div>
7873
</Container>

src/page/Blog/data.js

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ export const dataBlogs = [
3030
picture: "/static/blogImg/blog/blog_009.png",
3131
title: "Crifferent.de supports Darwinia and sponsors the Crab Hackathon!",
3232
tags: ["Announcements"],
33-
abstract:
34-
"We are excited to announce Crifferent.de as an official sponsor of the Crab Hackathon…",
33+
abstract: "We are excited to announce Crifferent.de as an official sponsor of the Crab Hackathon…",
3534
time: "January 26, 2022",
3635
link: "https://medium.com/@darwinianetwork/crifferent-de-supports-darwinia-and-sponsors-the-crab-hackathon-6a6650e65816",
3736
},
@@ -66,8 +65,7 @@ export const dataBlogs = [
6665
picture: "/static/blogImg/blog/blog_005.png",
6766
title: "RMRK is now an official sponsor of Darwinia Crab Hackathon!",
6867
tags: ["Announcements"],
69-
abstract:
70-
"We are excited to announce RMRK as an official sponsor of The Crab Hackathon!",
68+
abstract: "We are excited to announce RMRK as an official sponsor of The Crab Hackathon!",
7169
time: "January 11, 2022",
7270
link: "https://medium.com/@darwinianetwork/1btc-rewards-for-darwinia-polkadot-parachain-slot-auction-have-been-delivered-df9c9b76154b",
7371
},
@@ -83,7 +81,7 @@ export const dataBlogs = [
8381
{
8482
picture: "/static/blogImg/blog/blog_003.png",
8583
title: "Guide to Participate in the Crab PLO",
86-
tags: [ "Parachain"],
84+
tags: ["Parachain"],
8785
abstract:
8886
"We have structured a generous benefits package for our crowdloan contributors and sincerely hope you will consider loaning us your KSMs so that we can be successful in our bid for a parachain slot…",
8987
time: "January 7, 2022",
@@ -198,8 +196,7 @@ export const dataTutorials = [
198196
picture: "/static/blogImg/tutorials/tutorials_022.png",
199197
title: "Build on Darwinia 2–6: Crab Smart Chain vs Ethereum",
200198
tags: ["Tutorials", "Builders"],
201-
abstract:
202-
"Crab Smart Chain(CSC) is compatible with Ethereum, which is one of its most important features…",
199+
abstract: "Crab Smart Chain(CSC) is compatible with Ethereum, which is one of its most important features…",
203200
time: "March 4, 2022",
204201
link: "https://darwinianetwork.medium.com/build-on-darwinia-2-6-crab-smart-chain-vs-ethereum-614d39c4621d",
205202
subtype: "builders",
@@ -218,8 +215,7 @@ export const dataTutorials = [
218215
picture: "/static/blogImg/tutorials/tutorials_020.png",
219216
title: "Build on Darwinia 2–5: Understanding Crab Chain and Crab Smart Chain",
220217
tags: ["Tutorials", "Builders"],
221-
abstract:
222-
"There are two chains in the Darwinia Crab network, Crab Chain(CC) and Crab Smart Chain(CSC)…",
218+
abstract: "There are two chains in the Darwinia Crab network, Crab Chain(CC) and Crab Smart Chain(CSC)…",
223219
time: "February 18, 2022",
224220
link: "https://medium.com/@darwinianetwork/build-on-darwinia-2-5-understanding-crab-chain-and-crab-smart-chain-921e079ba7ec",
225221
subtype: "builders",
@@ -228,8 +224,7 @@ export const dataTutorials = [
228224
picture: "/static/blogImg/tutorials/tutorials_019.png",
229225
title: "Understanding Darwinia Tools 3–7: Crab Parachain Part IV: Crab Crowdloan",
230226
tags: ["Tutorials", "Tools"],
231-
abstract:
232-
"Key Points: Announced that Crab Network to join Kusama Parachain Auction…",
227+
abstract: "Key Points: Announced that Crab Network to join Kusama Parachain Auction…",
233228
time: "February 14, 2022",
234229
link: "https://medium.com/@darwinianetwork/using-darwinia-tools-3-7-crab-parachain-part-iv-crab-crowdloan-ea2358bd7f47",
235230
subtype: "tools",
@@ -278,8 +273,7 @@ export const dataTutorials = [
278273
picture: "/static/blogImg/tutorials/tutorials_014.png",
279274
title: "Build on Darwinia 2–4: Deploying Uniswap V2 to Crab/Pangolin Network Part II",
280275
tags: ["Tutorials", "Builders"],
281-
abstract:
282-
"This is the second article of the tutorial on the deployment of Uniswap V2 to Crab/Pangolin network…",
276+
abstract: "This is the second article of the tutorial on the deployment of Uniswap V2 to Crab/Pangolin network…",
283277
time: "January 27, 2022",
284278
link: "https://medium.com/@darwinianetwork/build-on-darwinia-2-4-deploying-uniswap-v2-to-crab-pangolin-network-ii-3798e6c43951",
285279
subtype: "builders",
@@ -388,8 +382,7 @@ export const dataTutorials = [
388382
picture: "/static/blogImg/tutorials/tutorials_003.png",
389383
title: "Understanding Darwinia Bridge 1–3: The Token Bridge Solution",
390384
tags: ["Tutorials", "Bridge"],
391-
abstract:
392-
"The cross-chain token bridge refers to the asset transfer channel between two heterogeneous chains…",
385+
abstract: "The cross-chain token bridge refers to the asset transfer channel between two heterogeneous chains…",
393386
time: "November 12, 2021",
394387
link: "https://darwinianetwork.medium.com/understanding-darwinia-bridge-1-3-the-token-bridge-solution-1f178c9891aa",
395388
subtype: "bridge",
@@ -403,7 +396,7 @@ export const dataTutorials = [
403396
time: "October 29, 2021",
404397
link: "https://darwinianetwork.medium.com/understanding-darwinia-bridge-1-2-mapping-token-factory-a77a2a2c47d1",
405398
subtype: "bridge",
406-
},
399+
},
407400
{
408401
picture: "/static/blogImg/tutorials/tutorials_001.png",
409402
title: "Understanding Darwinia Bridge 1–1: Darwinia Relayer Incentive Scheme — Fee Market",

src/page/Plo/Welcome/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ const Welcome = () => {
1313
<Container>
1414
<div className={cx("main")}>
1515
<img alt="..." src={bridge} className={cx("bridge")} />
16-
<h2 className={cx("title-h2")}>Support Darwinia, invest in the next generation of Web3.0 Metaverse</h2>
17-
<p className={cx("desc")}>Darwinia Network is bridging heterogeneous chains to build the Web3.0 Metaverse.</p>
16+
<h2 className={cx("title-h2")}>
17+
The Polkadot Parachain Auction has ended. Thank you for supporting Darwinia Network!
18+
</h2>
19+
<p className={cx("desc")}>
20+
Do not contribute any more DOT at this time. Metaverse NFT Package rewards can be claimed now!
21+
</p>
1822
<div className={cx("link-wrap")}>
1923
<Link className={cx("join-our-crowdloan-link")} to="plo_contribute">
20-
<span>Contribute now</span>
24+
<span>Crowdloan Details</span>
2125
</Link>
2226
<a
2327
className={cx("learn-more-link")}

src/page/PloContribute/components/global-contribution-activity.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ const GlobalContributionActivity = ({ allReferContributeData, globalTotalPower,
108108
myDot: formatBalanceFromOrigToDOT(nodeWho.totalBalance),
109109
referrals: nodeRefer ? nodeRefer.contributorsCount : 0,
110110
referralDot: nodeRefer ? formatBalanceFromOrigToDOT(nodeRefer.totalBalance) : 0,
111-
curRingRewards: contributePer.times(RING_REWARD).toFixed(8),
112-
curKtonRewards: contributePer.times(KTON_REWARD).toFixed(8),
111+
curRingRewards: '0' || contributePer.times(RING_REWARD).toFixed(8),
112+
curKtonRewards: '0' || contributePer.times(KTON_REWARD).toFixed(8),
113113
curBtcRewards: target ? target.reward : "0",
114114
curNft: "No Status",
115115
});

0 commit comments

Comments
 (0)