Skip to content

Commit

Permalink
feat: rebalancing script
Browse files Browse the repository at this point in the history
  • Loading branch information
sogipec committed May 15, 2024
1 parent 05240cd commit 095e021
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/AdjustYieldExposure.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.19;

import { Utils } from "./utils/Utils.s.sol";
import { console } from "forge-std/console.sol";
import { stdJson } from "forge-std/StdJson.sol";
import "stringutils/strings.sol";
import "./Constants.s.sol";

import { RebalancerFlashloan } from "contracts/helpers/RebalancerFlashloan.sol";

contract AdjustYieldExposure is Utils {
function run() external {
uint256 deployerPrivateKey = vm.envUint("KEEPER_PRIVATE_KEY");
address deployer = vm.addr(deployerPrivateKey);
console.log("Address: %s", deployer);
console.log(deployer.balance);
vm.startBroadcast(deployerPrivateKey);

RebalancerFlashloan rebalancer = RebalancerFlashloan(0x22604C0E5633A9810E01c9cb469B23Eee17AC411);
rebalancer.adjustYieldExposure(1000000 * 1 ether, 1, USDC, STEAK_USDC, 900000 * 1 ether);

vm.stopBroadcast();
}
}

0 comments on commit 095e021

Please sign in to comment.