8000 Add deployment config for Polygon by TomAFrench · Pull Request #581 · balancer/balancer-v2-monorepo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add deployment config for Polygon #581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2021
Merged

Add deployment config for Polygon #581

merged 2 commits into from
May 29, 2021

Conversation

TomAFrench
Copy link
Contributor
@TomAFrench TomAFrench commented May 25, 2021

Note: The Polygon RPC connection needs to be activated in the Infura dashboard.

@mikemcdonald
Copy link
Member

@TomAFrench I got this added this to infura. Existing apps/keys should work with the polygon-mainnet and polygon-mumbai networks

@@ -13,6 +13,8 @@ export default async function (hre: HardhatRuntimeEnvironment): Promise<void> {

if (chainId == '1') {
WETH = '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2';
} else if (chainId == '137') {
WETH = '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270';
Copy link
Contributor

Choose a reason for hiding this comment

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

For those curious, this is the address of the WMATIC token. The code is not verified, but based on this contract, it seems to be exactly the same as WETH, except on the Polygon network.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The code has been verified here which differs from what's shown on Github (but functionality the same as standard WETH): https://explorer-mainnet.maticvigil.com/address/0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270/contracts

@nventuro nventuro merged commit 3bc9bd8 into master May 29, 2021
@nventuro nventuro deleted the polygon branch May 29, 2021 01:10
rabmarut pushed a commit that referenced this pull request Jun 16, 2021
* feat: add deployment config for polygon

* feat: add deployment config for polygon mumbai testnet
rabmarut pushed a commit that referenced this pull request Jun 16, 2021
* feat: add deployment config for polygon

* feat: add deployment config for polygon mumbai testnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0