Skip to content

Commit

Permalink
Merge pull request #1699 from Ankr-network/stage
Browse files Browse the repository at this point in the history
feat: DOCS-772 Matic to POL renaming
  • Loading branch information
galleon8 authored Sep 6, 2024
2 parents 66da65c + ae90c0b commit 9293076
Show file tree
Hide file tree
Showing 49 changed files with 436 additions and 423 deletions.
4 changes: 2 additions & 2 deletions pages/advanced-api/quickstart/account-balance-ankrjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const chainsToNativeSymbols: { [key in Blockchain]: string } = {
avalanche: 'AVAX',
bsc: 'BNB',
fantom: 'FTM',
polygon: 'MATIC',
polygon: 'POL',
};

//getAccountBalance function to fetch coins and their respective token balances
Expand Down Expand Up @@ -163,7 +163,7 @@ export const chainsToNativeSymbols: { [key in Blockchain]: string } = {
avalanche: 'AVAX',
bsc: 'BNB',
fantom: 'FTM',
polygon: 'MATIC',
polygon: 'POL',
};

//getAccountBalance function to fetch coins and their respective token balances
Expand Down
4 changes: 2 additions & 2 deletions pages/advanced-api/quickstart/defi-dashboard-ankrjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const chainsToNativeSymbols: { [key in Blockchain]: string } = {
avalanche: 'AVAX',
bsc: 'BNB',
fantom: 'FTM',
polygon: 'MATIC',
polygon: 'POL',
};

//getAccountBalance function to fetch coins and their respective token balances
Expand Down Expand Up @@ -259,7 +259,7 @@ export const chainsToNativeSymbols: { [key in Blockchain]: string } = {
avalanche: 'AVAX',
bsc: 'BNB',
fantom: 'FTM',
polygon: 'MATIC',
polygon: 'POL',
};

//getAccountBalance function to fetch coins and their respective token balances
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ By the end of this tutorial, you'll be able to:

1. **Start New Campaign** — users will be able to start a new crowdfunding project by inputting some details about the campaign like title, story and goal amount to be raised.
2. **View Projects** — users can see all the existing projects and campaign details on the homepage
3. **Make Donation** — anyone can fund to the project they want to support in Matic tokens
3. **Make Donation** — anyone can fund to the project they want to support in POL tokens


## The Tech Stack
Expand Down Expand Up @@ -563,12 +563,12 @@ export function useCrowdfundingProjectFunctionReader({
}
```

Now, let's move to the other file named "**utils.ts**". In this file we are creating helper functions to convert wei into matic.
Now, let's move to the other file named "**utils.ts**". In this file we are creating helper functions to convert wei into POL.

**File:** `src/utils.ts`

```javascript
//helper functions to convert wei into matic
//helper functions to convert wei into pol

import type { BigNumberish } from "ethers";
import { BigNumber, utils } from "ethers";
Expand Down Expand Up @@ -1022,7 +1022,7 @@ function Campaign({ projectNumber }: CampaignProps) {

addRecentTransaction({
hash: tx.hash,
description: `Donate ${value} MATIC`,
description: `Donate ${value} POL`,
});
} catch (error) {
console.log("errror >>> ", error);
Expand All @@ -1048,11 +1048,11 @@ function Campaign({ projectNumber }: CampaignProps) {
<div className="px-6 pt-4 pb-2">
<span className="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">
Goal Amount:
<span className="text-purple-700">{fromWei(goalAmount)} MATIC</span>
<span className="text-purple-700">{fromWei(goalAmount)} POL</span>
</span>
<span className="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">
Raised Amount:
<span className="text-purple-700">{fromWei(raisedAmount)} MATIC</span>
<span className="text-purple-700">{fromWei(raisedAmount)} POL</span>
</span>

<div className="flex items-center py-2">
Expand Down
10 changes: 5 additions & 5 deletions pages/bridge/bridge-tokens.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ We're going to explain bridging, using ankrETH (ex-aETHc).
8. Confirm switching networks.
<img src="/docs/staking/bridge/confirm-switching-networks-binance.jpg" alt="Confirm switching networks" class="responsive-pic" width="250" />
9. Connect your wallet if asked, choosing MetaMask.
10. Click **Receive** to receive ankrMATIC on the destination network by clicking **Receive**. A gas fee applies.
10. Click **Receive** to receive ankrPOL on the destination network by clicking **Receive**. A gas fee applies.
<img src="/docs/staking/bridge/click-receive.jpg" alt="Click Receive" class="responsive-pic" width="400" />
11. Confirm receiving ankrMATIC in MetaMask.
11. Confirm receiving ankrPOL in MetaMask.
<img src="/docs/staking/bridge/confirm-receiving.jpg" alt="Confirm receiving" class="responsive-pic" width="250" />
12. Click **Add ankrMATIC to wallet** to add the bridged tokens to MetaMask.<br/> You can also see the transaction in the explorer by clicking the **go-to** button next to the transaction hash.
12. Click **Add ankrPOL to wallet** to add the bridged tokens to MetaMask.<br/> You can also see the transaction in the explorer by clicking the **go-to** button next to the transaction hash.
<img src="/docs/staking/bridge/add-token-to-wallet.jpg" alt="Click Add" class="responsive-pic" width="400" />

If something failed along the way after #5, see the **Finish Bridge** section below.
Expand All @@ -38,7 +38,7 @@ The bridging process may fail due to:
* Closing the page anytime during the process.
* Ankr Bridge failures due to network instability and other possible issues.

If the process failed anywhere before #5 from **Bridge ankrMATIC**, no action is needed. Just start bridging again.
If the process failed anywhere before #5 from **Bridge ankrPOL**, no action is needed. Just start bridging again.

If the process failed at #5 or later:
1. Open your wallet, find and copy the transaction ID from the **Deposit** operation.
Expand All @@ -47,5 +47,5 @@ If the process failed at #5 or later:
<img src="/docs/staking/bridge/click-finish-bridge.jpg" alt="Click Finish Bridge" class="responsive-pic" width="450" />
4. Paste the deposit transaction ID in the form and click **Proceed bridge**.
<img src="/docs/staking/bridge/click-proceed.jpg" alt="Click proceed bridge" class="responsive-pic" width="450" />
5. Check that it brought you to the **Sending progress** page, then continue from #6 in the **Bridge ankrMATIC** instructions above.
5. Check that it brought you to the **Sending progress** page, then continue from #6 in the **Bridge ankrPOL** instructions above.
<img src="/docs/staking/bridge/in-progress.jpg" alt="Don't close the next page" class="responsive-pic" width="450" />
2 changes: 1 addition & 1 deletion pages/bridge/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Currently, Ankr Bridge supports the following native Ankr Liquid Tokens and allo
* Ethereum–Polygon–Ethereum
* Ethereum–BNB Smart Chain–Ethereum
* Polygon–BNB Smart Chain–Polygon
* ankrMATIC
* ankrPOL
* Ethereum–Polygon–Ethereum
* aETHb
* Ethereum–BNB Smart Chain–Ethereum
Expand Down
2 changes: 1 addition & 1 deletion pages/info-map.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ This section aims at navigating your ship fast and easy through the vast ocean o
* [**Delegated Staking**](/delegated-staking/ankr/overview/)<br/>
Delegated staking how-tos; ANKR and GNO stake, unstake, FAQ, general information.
* [**Liquid Staking**](/liquid-staking/overview/)<br/>
Liquid staking how-tos; AVAX, BNB, DOT, ETH, FTM, KSM, MATIC stake, unstake, FAQ, general information, audit reports.
Liquid staking how-tos; AVAX, BNB, DOT, ETH, FTM, KSM, POL stake, unstake, FAQ, general information, audit reports.
* [**Liquid Crowdloan**](/liquid-crowdloan/overview/)<br/>
Liquid Crowdloan basics; general information.
* [**DeFi**](/defi/overview/)<br/>
Expand Down
4 changes: 2 additions & 2 deletions pages/liquid-staking/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"flow": "Flow",
"ftm": "Fantom",
"dot": "Polkadot",
"matic": "Polygon"
}
"pol": "Polygon"
}
101 changes: 0 additions & 101 deletions pages/liquid-staking/matic/faq.mdx

This file was deleted.

46 changes: 0 additions & 46 deletions pages/liquid-staking/matic/overview.mdx

This file was deleted.

31 changes: 0 additions & 31 deletions pages/liquid-staking/matic/unstake.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion pages/liquid-staking/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The benefits of Liquid Staking depend on your choice of staked asset.
#### 1. Liquidity

When you stake ETH and receive Liquid Staking tokens ankrETH, the main benefit is the liquidity as it is not possible to unstake ETH for the moment until phase 1.5 of Ethereum 2.0.
It is, however, possible with other Liquid Staking tokens, such as ankrAVAX, ankrETH, ankrFTM, ankrMATIC.
It is, however, possible with other Liquid Staking tokens, such as ankrAVAX, ankrETH, ankrFTM, ankrPOL.

#### 2. Elastic supply

Expand Down
File renamed without changes.
Loading

0 comments on commit 9293076

Please sign in to comment.