Skip to content
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

Add USDC market on Scroll mainnet #824

Conversation

isabellewei
Copy link
Contributor

WETH and wstETH on USDC market

@isabellewei isabellewei force-pushed the isabellewei/scroll-mainnet branch from 493bae4 to 3bde642 Compare January 25, 2024 02:13
@@ -108,7 +117,17 @@ export default async function relayScrollMessage(
console.log(
`[${governanceDeploymentManager.network} -> ${bridgeDeploymentManager.network}] Bridged over ${amount} of WETH to user ${to}`
);
} else if (target === bridgeReceiver.address) {
} else if (target === l2WstETHGateway.address){
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this just a generic ERC20 gateway? I don't think we need a case for every ERC20 unless they all go through different gateways.

Copy link
Contributor Author

@isabellewei isabellewei Feb 2, 2024

Choose a reason for hiding this comment

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

it's specifically for bridging WstETH. Even though on the L2 side it's basically a generic ERC20 token on the L1 side it's different

@isabellewei isabellewei force-pushed the isabellewei/scroll-mainnet branch from 211fa26 to 12f8856 Compare February 8, 2024 00:21
Copy link
Contributor

@kevincheng96 kevincheng96 left a comment

Choose a reason for hiding this comment

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

Looks great! 🎆

@kevincheng96 kevincheng96 merged commit 6613ce8 into compound-finance:isabellewei/scroll-deploy Mar 28, 2024
3 of 26 checks passed
kevincheng96 added a commit that referenced this pull request Mar 28, 2024
* debug

* update price feed

* update config

* temp workaround

* add scroll to scenarios

* uncomment spider debug messages

* add scroll relations

* catch failed spider crawls

* Fix spider for scroll

* update bridge receiver to be compatible with scroll bridge

* update relations

* Modified deployment roots from GitHub Actions

* remove console.log

* rename scroll messenger

* add scroll to governance scenarios

* adapt scroll relay message fn

* fix unit tests

* rename contracts and update message relaying

* update scroll testnet block explorer URL

* remove base fee

* fix scroll l2 sender address

* remove old roots

* fix type errors

* Modified deployment roots from GitHub Actions

* proposal for intializing usdc market on scroll goerli

* add configurator to scroll relations

* PR comments

* add docstrings

* emit event when intializing ScrollBridgeReceiver

* PR comments

* update comment

* add usdc market on scroll mainnet

* fix wseth

* create migration

* use gauntlet recommended parameters

* lint and fix timelock params

* set  rewards speed to 0

* add pause guardian

* fix scientific notation

* add scroll mainnet roots

* update scroll relations for wsteth

* PR comments

* update wsteth/USD price feed to exchange rate based

* Modified deployment roots from GitHub Actions

* update proposal description

* update scroll governance proposal to bridge USDC instead of COMP

* final PR comments

* set message value on propsal actions

---------

Co-authored-by: Isabelle Wei <isabellewei@Isabelles-MacBook-Pro.local>
Co-authored-by: isabelle <isabelle@scroll.io>
Co-authored-by: kevincheng96 <kevincheng96@hotmail.com>
Co-authored-by: GitHub Actions Bot <>
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.

2 participants