-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SiAL; LeverageLendingBase 1.1.0; deploy scripts; fixes
- Loading branch information
Showing
40 changed files
with
966 additions
and
53 deletions.
There are no files selected for viewing
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
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,23 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.23; | ||
|
||
import {Script} from "forge-std/Script.sol"; | ||
import {Proxy} from "../../src/core/proxy/Proxy.sol"; | ||
import {ERC4626Adapter} from "../../src/adapters/ERC4626Adapter.sol"; | ||
|
||
contract DeployERC4626AdapterSonic is Script { | ||
address public constant PLATFORM = 0x4Aca671A420eEB58ecafE83700686a2AD06b20D8; | ||
|
||
function run() external { | ||
uint deployerPrivateKey = vm.envUint("PRIVATE_KEY"); | ||
vm.startBroadcast(deployerPrivateKey); | ||
|
||
Proxy proxy = new Proxy(); | ||
proxy.initProxy(address(new ERC4626Adapter())); | ||
ERC4626Adapter(address(proxy)).init(PLATFORM); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
|
||
function testDeployAdapter() external {} | ||
} |
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,16 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.23; | ||
|
||
import {Script} from "forge-std/Script.sol"; | ||
import {SiloAdvancedLeverageStrategy} from "../../src/strategies/SiloAdvancedLeverageStrategy.sol"; | ||
|
||
contract DeploySiAL is Script { | ||
function run() external { | ||
uint deployerPrivateKey = vm.envUint("PRIVATE_KEY"); | ||
vm.startBroadcast(deployerPrivateKey); | ||
new SiloAdvancedLeverageStrategy(); | ||
vm.stopBroadcast(); | ||
} | ||
|
||
function testDeployStrategy() external {} | ||
} |
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
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
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,7 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.23; | ||
|
||
interface ITeller { | ||
function deposit(address depositAsset, uint depositAmount, uint minimumMint) external payable returns (uint shares); | ||
|
||
} |
Oops, something went wrong.