-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add direct transfer to the wallet migrator
- Loading branch information
1 parent
6d406e0
commit bf7fc64
Showing
4 changed files
with
90 additions
and
7 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
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,38 @@ | ||
// SPDX-License-Identifier: GNU GPLv3 | ||
pragma solidity 0.8.21; | ||
|
||
import "forge-std/Script.sol"; | ||
import "forge-std/console.sol"; | ||
import { UpgradeScript } from "./utils/UpgradeScript.s.sol"; | ||
import { MonoPool } from "swap-pool/MonoPool.sol"; | ||
import { WalletMigrator } from "contracts/wallets/WalletMigrator.sol"; | ||
|
||
contract DeployWalletMigrator is UpgradeScript { | ||
/// @dev The basis point for the pool to deploy | ||
uint256 private constant BPS = 100; | ||
|
||
function run() external { | ||
// Get the current addresses | ||
UpgradeScript.ContractProxyAddresses memory addresses = _currentProxyAddresses(); | ||
|
||
// Deploy the migrator contract | ||
WalletMigrator walletMigrator = _deployMigrator(addresses); | ||
console.log("Migrator deployed to %s", address(walletMigrator)); | ||
} | ||
|
||
/// @dev Deploy the migrator contract | ||
function _deployMigrator(UpgradeScript.ContractProxyAddresses memory addresses) | ||
internal | ||
deployerBroadcast | ||
returns (WalletMigrator) | ||
{ | ||
// Build the wallet migrator we will test | ||
return new WalletMigrator( | ||
addresses.frakToken, | ||
addresses.fraktionTokens, | ||
addresses.rewarder, | ||
addresses.contentPool, | ||
addresses.referralPool | ||
); | ||
} | ||
} |
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