Skip to content

Commit

Permalink
Add comment on why token names are pricefeed ids
Browse files Browse the repository at this point in the history
  • Loading branch information
m30m committed Feb 4, 2024
1 parent 20c6e04 commit e3041a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions per_multicall/script/Vault.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ contract VaultScript is Script {
address vault = deployVault(per, pyth);
address[] memory tokens = new address[](5);
uint256 lots_of_money = 10 ** 36;
// Vault simulator assumes the token name is pyth pricefeed id in mainnet
tokens[0] = address(
new MyToken(
"e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43",
Expand Down
1 change: 1 addition & 0 deletions per_multicall/src/WETH9.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
pragma solidity ^0.8.0;

contract WETH9 {
// Vault simulator assumes the token name is pyth pricefeed id in mainnet
string public name =
"c96458d393fe9deb7a7d63a0ac41e2898a67a7750dbd166673279e06c868df0a"; // ETH/USD pricefeed id
string public symbol = "WETH";
Expand Down

0 comments on commit e3041a0

Please sign in to comment.