Skip to content

Commit

Permalink
Deploy Protocolink contracts to BNB Chain
Browse files Browse the repository at this point in the history
  • Loading branch information
zodahu committed May 13, 2024
1 parent 9fce488 commit 616f0ad
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 8 deletions.
2 changes: 1 addition & 1 deletion script/DeployArbitrum.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract DeployArbitrum is
address public constant DEPLOYER = 0xBcb909975715DC8fDe643EE44b89e3FD6A35A259;
address public constant OWNER = 0x64585922a9703d9EdE7d353a6522eb2970f75066;
address public constant PAUSER = 0x660Cc6D82925Cc804aC4EBD1d5870Fa32C9aBDb8;
address public constant DEFAULT_COLLECTOR = 0x3EBe4dfaF95cd320BF34633B3BDf773FbE732E63;
address public constant DEFAULT_COLLECTOR = 0xFB20753f85f89be6F42D228667D70e62D1Ba5f75;
address public constant CREATE3_FACTORY = 0xFa3e9a110E6975ec868E9ed72ac6034eE4255B64;

/// @notice Set up deploy parameters and deploy contracts whose `deployedAddress` equals `UNDEPLOYED`.
Expand Down
2 changes: 1 addition & 1 deletion script/DeployAvalanche.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract DeployAvalanche is
address public constant DEPLOYER = 0xBcb909975715DC8fDe643EE44b89e3FD6A35A259;
address public constant OWNER = 0xBb91D028cAD3D67e3AFBAC2De9159DBE98467a9e;
address public constant PAUSER = 0x04950cDF995425f353fe3c6E10Cf63047eaD29DE;
address public constant DEFAULT_COLLECTOR = 0x168608B226ef4E59Db5E61359509656a51BAe090;
address public constant DEFAULT_COLLECTOR = 0xFB20753f85f89be6F42D228667D70e62D1Ba5f75;
address public constant CREATE3_FACTORY = 0xFa3e9a110E6975ec868E9ed72ac6034eE4255B64;

/// @notice Set up deploy parameters and deploy contracts whose `deployedAddress` equals `UNDEPLOYED`.
Expand Down
2 changes: 1 addition & 1 deletion script/DeployBase.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract DeployBase is DeployRouter, DeployAaveV3FlashLoanCallback, DeployBalanc
address public constant DEPLOYER = 0xBcb909975715DC8fDe643EE44b89e3FD6A35A259;
address public constant OWNER = 0x19Bb1986F0d57D0315CF9c42F7fa1d4Ba9C0798F;
address public constant PAUSER = 0xFC0351FAC21f4828086F2f4298103A37AD07EA8E;
address public constant DEFAULT_COLLECTOR = 0x50Df7c73bA1B4bb74934E50298de73F265260Ea4;
address public constant DEFAULT_COLLECTOR = 0xFB20753f85f89be6F42D228667D70e62D1Ba5f75;
address public constant CREATE3_FACTORY = 0xFa3e9a110E6975ec868E9ed72ac6034eE4255B64;

/// @notice Set up deploy parameters and deploy contracts whose `deployedAddress` equals `UNDEPLOYED`.
Expand Down
42 changes: 42 additions & 0 deletions script/DeployBnb.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {DeployRouter} from './DeployRouter.s.sol';
import {DeployRadiantV2FlashLoanCallback} from './callbacks/DeployRadiantV2FlashLoanCallback.s.sol';

contract DeployBnb is DeployRouter, DeployRadiantV2FlashLoanCallback {
address public constant DEPLOYER = 0xBcb909975715DC8fDe643EE44b89e3FD6A35A259;
address public constant OWNER = 0x681B7d3470156a8fA6DAf282979d3864b5007b5d;
address public constant PAUSER = 0x2A57fA8Ec5681a7A96f6070ee360BfD85dFC5bd4;
address public constant DEFAULT_COLLECTOR = 0xFB20753f85f89be6F42D228667D70e62D1Ba5f75;
address public constant CREATE3_FACTORY = 0xFa3e9a110E6975ec868E9ed72ac6034eE4255B64;

/// @notice Set up deploy parameters and deploy contracts whose `deployedAddress` equals `UNDEPLOYED`.
function setUp() external {
routerConfig = RouterConfig({
deployedAddress: 0xDec80E988F4baF43be69c13711453013c212feA8,
wrappedNative: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c,
permit2: 0x000000000022D473030F116dDEE9F6B43aC78BA3,
deployer: DEPLOYER,
owner: OWNER,
pauser: PAUSER,
defaultCollector: DEFAULT_COLLECTOR,
signer: 0xffFf5a88840FF1f168E163ACD771DFb292164cFA,
feeRate: 20
});

radiantV2FlashLoanCallbackConfig = RadiantV2FlashLoanCallbackConfig({
deployedAddress: 0x6bfCE075A1c4F0fD4067A401dA8f159354e1a916,
radiantV2Provider: 0x63764769dA006395515c3f8afF9c91A809eF6607,
feeRate: 5
});
}

function _run() internal override {
// router
address deployedRouterAddress = _deployRouter(CREATE3_FACTORY);

// callback
_deployRadiantV2FlashLoanCallback(CREATE3_FACTORY, deployedRouterAddress);
}
}
2 changes: 1 addition & 1 deletion script/DeployEthereum.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ contract DeployEthereum is
address public constant DEPLOYER = 0xBcb909975715DC8fDe643EE44b89e3FD6A35A259;
address public constant OWNER = 0xA7248F4B85FB6261c314d08e7938285d1d86cd61;
address public constant PAUSER = 0x4d2D634Bf4b271f74bBf3A30f50497EC3D90024e;
address public constant DEFAULT_COLLECTOR = 0x6304EB1B1eC2135a64a90bA901B12Cf769657579;
address public constant DEFAULT_COLLECTOR = 0xFB20753f85f89be6F42D228667D70e62D1Ba5f75;
address public constant CREATE3_FACTORY = 0xFa3e9a110E6975ec868E9ed72ac6034eE4255B64;

/// @notice Set up deploy parameters and deploy contracts whose `deployedAddress` equals `UNDEPLOYED`.
Expand Down
2 changes: 1 addition & 1 deletion script/DeployGnosis.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract DeployGnosis is
address public constant DEPLOYER = 0xBcb909975715DC8fDe643EE44b89e3FD6A35A259;
address public constant OWNER = 0x13D09F09EF1f201D18d6b2fD4578D8feBf1c774d;
address public constant PAUSER = 0x23535221bC116F3b8a17b768806C5d7Cd36b020D;
address public constant DEFAULT_COLLECTOR = 0x4207b828b673EDC01d7f0020E8e8A99D8b454136;
address public constant DEFAULT_COLLECTOR = 0xFB20753f85f89be6F42D228667D70e62D1Ba5f75;
address public constant CREATE3_FACTORY = 0xFa3e9a110E6975ec868E9ed72ac6034eE4255B64;

/// @notice Set up deploy parameters and deploy contracts whose `deployedAddress` equals `UNDEPLOYED`.
Expand Down
2 changes: 1 addition & 1 deletion script/DeployMetis.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ contract DeployMetis is DeployRouter, DeployAaveV3FlashLoanCallback {
address public constant DEPLOYER = 0xBcb909975715DC8fDe643EE44b89e3FD6A35A259;
address public constant OWNER = 0xcE245455a34a57548F7c1F427233DFC1E84Ce1b3;
address public constant PAUSER = 0xcE245455a34a57548F7c1F427233DFC1E84Ce1b3;
address public constant DEFAULT_COLLECTOR = 0x75Ce960F2FD5f06C83EE034992362e593dcf7722;
address public constant DEFAULT_COLLECTOR = 0xFB20753f85f89be6F42D228667D70e62D1Ba5f75;
address public constant CREATE3_FACTORY = 0xFa3e9a110E6975ec868E9ed72ac6034eE4255B64;

/// @notice Set up deploy parameters and deploy contracts whose `deployedAddress` equals `UNDEPLOYED`.
Expand Down
2 changes: 1 addition & 1 deletion script/DeployOptimism.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract DeployOptimism is DeployRouter, DeployAaveV3FlashLoanCallback, DeployBa
address public constant DEPLOYER = 0xBcb909975715DC8fDe643EE44b89e3FD6A35A259;
address public constant OWNER = 0xBb91D028cAD3D67e3AFBAC2De9159DBE98467a9e;
address public constant PAUSER = 0xFC8c51c35F69FD85F745dFB49b1dC8a448AD8694;
address public constant DEFAULT_COLLECTOR = 0x168608B226ef4E59Db5E61359509656a51BAe090;
address public constant DEFAULT_COLLECTOR = 0xFB20753f85f89be6F42D228667D70e62D1Ba5f75;
address public constant CREATE3_FACTORY = 0xFa3e9a110E6975ec868E9ed72ac6034eE4255B64;

/// @notice Set up deploy parameters and deploy contracts whose `deployedAddress` equals `UNDEPLOYED`.
Expand Down
2 changes: 1 addition & 1 deletion script/DeployPolygon.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract DeployPolygon is
address public constant DEPLOYER = 0xBcb909975715DC8fDe643EE44b89e3FD6A35A259;
address public constant OWNER = 0x64585922a9703d9EdE7d353a6522eb2970f75066;
address public constant PAUSER = 0x90923059eE32AcF4EBdf8E7864E7724Cf11649f3;
address public constant DEFAULT_COLLECTOR = 0x3EBe4dfaF95cd320BF34633B3BDf773FbE732E63;
address public constant DEFAULT_COLLECTOR = 0xFB20753f85f89be6F42D228667D70e62D1Ba5f75;
address public constant CREATE3_FACTORY = 0xFa3e9a110E6975ec868E9ed72ac6034eE4255B64;

/// @notice Set up deploy parameters and deploy contracts whose `deployedAddress` equals `UNDEPLOYED`.
Expand Down

0 comments on commit 616f0ad

Please sign in to comment.