-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
script/Arbitrum/peggyjv_production/QueryTestCellarAddress.s.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity 0.8.21; | ||
|
||
import { Deployer } from "src/Deployer.sol"; | ||
import { ArbitrumAddresses } from "test/resources/Arbitrum/ArbitrumAddressesPeggyJV.sol"; | ||
import "forge-std/Script.sol"; | ||
import { CellarWithOracleWithBalancerFlashLoansWithMultiAssetDeposit } from "src/base/permutations/advanced/CellarWithOracleWithBalancerFlashLoansWithMultiAssetDeposit.sol"; | ||
import { ContractDeploymentNames } from "resources/PeggyJVContractDeploymentNames.sol"; | ||
|
||
/** | ||
* @dev Run | ||
* source .env && forge script script/Arbitrum/peggyjv_production/QueryTestCellarAddress.s.sol:QueryRYUSDAddress --evm-version london --with-gas-price 100000000 --slow --broadcast --etherscan-api-key $ARBISCAN_KEY --verify --private-key $PRIVATE_KEY | ||
* @dev Optionally can change `--with-gas-price` to something more reasonable | ||
*/ | ||
|
||
contract QueryRYUSDAddress is Script, ArbitrumAddresses, ContractDeploymentNames { | ||
uint256 public privateKey; | ||
|
||
Deployer public deployer = Deployer(deployerAddress); | ||
address public ryusd_address = address(0); | ||
|
||
CellarWithOracleWithBalancerFlashLoansWithMultiAssetDeposit public RYUSD; | ||
|
||
function setUp() external { | ||
privateKey = vm.envUint("PRIVATE_KEY"); | ||
vm.createSelectFork("arbitrum"); | ||
ryusd_address = deployer.getAddress(realYieldUsdName); | ||
} | ||
|
||
function run() external { | ||
vm.startBroadcast(); | ||
console.log("RYUSD address: %s", ryusd_address); | ||
vm.stopBroadcast(); | ||
} | ||
} |