Skip to content

Commit

Permalink
Add Base Sepolia config for WETH wrapper (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincheng96 committed Jul 23, 2024
1 parent c2feb51 commit 720b62e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/builder/QuarkBuilder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {List} from "./List.sol";
contract QuarkBuilder {
/* ===== Constants ===== */

string constant VERSION = "0.0.2";
string constant VERSION = "0.0.3";

/* ===== Custom Errors ===== */

Expand Down
9 changes: 8 additions & 1 deletion src/builder/TokenWrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ library TokenWrapper {
}

function knownWrapperTokenPairs() internal pure returns (KnownWrapperTokenPair[] memory) {
KnownWrapperTokenPair[] memory pairs = new KnownWrapperTokenPair[](3);
KnownWrapperTokenPair[] memory pairs = new KnownWrapperTokenPair[](4);
pairs[0] = KnownWrapperTokenPair({
chainId: 1,
wrapper: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,
Expand All @@ -42,6 +42,13 @@ library TokenWrapper {
underlyingToken: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE,
wrappedSymbol: "WETH"
});
pairs[3] = KnownWrapperTokenPair({
chainId: 84532,
wrapper: 0x4200000000000000000000000000000000000006,
underlyingSymbol: "ETH",
underlyingToken: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE,
wrappedSymbol: "WETH"
});
// NOTE: Leave out stETH and wstETH auto wrapper for now
// TODO: Need to figure a way out to compute the "correct" ratio between stETH and wstETH for QuarkBuilder
// Because QuarkBuilder doesn't have access to on-chain data, but the ratio between stETH and wstETH is constantly changing,
Expand Down

0 comments on commit 720b62e

Please sign in to comment.