@@ -9,6 +9,7 @@ contract DeployLendingBroker is Script {
99 address moolah;
1010 address interestRelayer;
1111 address oracle;
12+ address wbnb;
1213 address timelock;
1314 address manager;
1415 address pauser;
@@ -20,6 +21,7 @@ contract DeployLendingBroker is Script {
2021 moolah = vm.envAddress ("MOOLAH " );
2122 interestRelayer = vm.envAddress ("INTEREST_RELAYER " );
2223 oracle = vm.envAddress ("ORACLE " );
24+ wbnb = vm.envOr ("WBNB " , address (0 ));
2325 timelock = vm.envAddress ("TIMELOCK " );
2426 manager = vm.envAddress ("MANAGER " );
2527 pauser = vm.envAddress ("PAUSER " );
@@ -35,7 +37,7 @@ contract DeployLendingBroker is Script {
3537 vm.startBroadcast (deployerPrivateKey);
3638
3739 // Deploy LendingBroker implementation
38- LendingBroker impl = new LendingBroker (moolah, interestRelayer, oracle);
40+ LendingBroker impl = new LendingBroker (moolah, interestRelayer, oracle, wbnb );
3941 console.log ("LendingBroker implementation: " , address (impl));
4042
4143 // Deploy LendingBroker proxy
@@ -56,8 +58,8 @@ contract DeployLendingBroker is Script {
5658 // grant roles to manager and admin
5759 bytes32 MANAGER = keccak256 ("MANAGER " );
5860 bytes32 DEFAULT_ADMIN_ROLE = 0x0000000000000000000000000000000000000000000000000000000000000000 ;
59- LendingBroker (address (proxy)).grantRole (MANAGER, manager);
60- LendingBroker (address (proxy)).grantRole (DEFAULT_ADMIN_ROLE, timelock);
61+ LendingBroker (payable ( address (proxy) )).grantRole (MANAGER, manager);
62+ LendingBroker (payable ( address (proxy) )).grantRole (DEFAULT_ADMIN_ROLE, timelock);
6163
6264 vm.stopBroadcast ();
6365 }
0 commit comments