Skip to content

Commit

Permalink
Fix multicall in BorrowerNFT by making mint payable, and outsource URI
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenshively committed Oct 23, 2023
1 parent 0a9ceef commit 2fd8655
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 682 deletions.
17 changes: 12 additions & 5 deletions periphery/script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,30 @@ import {BorrowerLens} from "src/BorrowerLens.sol";
import {LenderLens} from "src/LenderLens.sol";
import {Router, IPermit2} from "src/Router.sol";

import {BorrowerNFT} from "src/borrower-nft/BorrowerNFT.sol";
import {BorrowerNFT, IBorrowerURISource} from "src/borrower-nft/BorrowerNFT.sol";

import {BoostManager} from "src/managers/BoostManager.sol";
import {FrontendManager} from "src/managers/FrontendManager.sol";
import {SimpleManager} from "src/managers/SimpleManager.sol";
import {UniswapNFTManager, INFTManager} from "src/managers/UniswapNFTManager.sol";

bytes32 constant TAG = bytes32(uint256(0xA10EBE1A2));
bytes32 constant TAG = bytes32(uint256(0xA10EBE1A3));

contract DeployScript is Script {
string[] chains = ["optimism", "arbitrum", "base"];

Factory[] factories = [
Factory(0x3A0a11A7829bfB34400cE338a0442877FBC8582e),
Factory(0x3A0a11A7829bfB34400cE338a0442877FBC8582e),
Factory(0x000000F00500f8BC2a68D90723AC00fCf4AD4b4D),
Factory(0x000000F00500f8BC2a68D90723AC00fCf4AD4b4D),
Factory(0x00000006d6C0519e0eB953CFfeb7007e5200680B)
];

IBorrowerURISource[] uriSources = [
IBorrowerURISource(0x0000000000000000000000000000000000000000),
IBorrowerURISource(0x0000000000000000000000000000000000000000),
IBorrowerURISource(0x0000000000000000000000000000000000000000)
];

INFTManager[] uniswapNfts = [
INFTManager(0xC36442b4a4522E871399CD717aBDD847Ab11FE88),
INFTManager(0xC36442b4a4522E871399CD717aBDD847Ab11FE88),
Expand All @@ -42,6 +48,7 @@ contract DeployScript is Script {
function run() external {
for (uint256 i = 0; i < chains.length; i++) {
Factory factory = factories[i];
IBorrowerURISource uriSource = uriSources[i];
INFTManager uniswapNft = uniswapNfts[i];
IPermit2 permit2 = permit2s[i];

Expand All @@ -52,7 +59,7 @@ contract DeployScript is Script {
new LenderLens{salt: TAG}();
new Router{salt: TAG}(permit2);

BorrowerNFT borrowerNft = new BorrowerNFT{salt: TAG}(factory);
BorrowerNFT borrowerNft = new BorrowerNFT{salt: TAG}(factory, uriSource);

new BoostManager{salt: TAG}(factory, address(borrowerNft), uniswapNft);
new FrontendManager{salt: TAG}(factory);
Expand Down
151 changes: 0 additions & 151 deletions periphery/src/boost/BoostNFT.txt

This file was deleted.

158 changes: 0 additions & 158 deletions periphery/src/boost/NFTDescriptor.sol

This file was deleted.

Loading

0 comments on commit 2fd8655

Please sign in to comment.