Skip to content

Commit

Permalink
Deploy seems to be working now
Browse files Browse the repository at this point in the history
  • Loading branch information
JaniAnttonen committed Nov 4, 2022
1 parent d357026 commit 0823d10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
17 changes: 6 additions & 11 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,26 @@ import "../src/Jungfrau.sol";
import "../src/BFKLoanMarket.sol";

contract MyScript is Script {
Blemflarck public blemflarck;
Jungfrau public jungfrau;
BFKLoanMarket public bfkLoanMarket;

uint256 public constant AMOUNT = 42 * 10**18;

function run() external {
uint256 deployerPrivateKey = vm.envUint("DEPLOYER_PRIVATE_KEY");
//uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
address exploiter = 0x08A2DE6F3528319123b25935C92888B16db8913E;
address deployer = 0x02B2017c737aDC3DbAaA77bE0897A0EA76d87d4c;

// Deploy the token contracts with the deployer key that isn't compromised
vm.startBroadcast(deployerPrivateKey);
vm.startBroadcast();

blemflarck = new Blemflarck();
jungfrau = new Jungfrau();
Blemflarck blemflarck = new Blemflarck();
Jungfrau jungfrau = new Jungfrau();

// Fund this deploy address with blemflarck as collateral
blemflarck.mint(deployer, AMOUNT);
blemflarck.mint(msg.sender, AMOUNT);

// Deploy the loan contract with the compromised key

address eurusdOracle = 0x7d7356bF6Ee5CDeC22B216581E48eCC700D0497A;

bfkLoanMarket = new BFKLoanMarket(
BFKLoanMarket bfkLoanMarket = new BFKLoanMarket(
address(blemflarck),
address(jungfrau),
eurusdOracle
Expand Down
2 changes: 1 addition & 1 deletion src/test/BFKLoanMarket.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ contract BFKLoanMarketTest is Test {
address(priceOracle)
);

priceOracle.setPrice(1 * 10**8);
priceOracle.setPrice(99547000);

// Fund this test contract with blemflarck as collateral
blemflarck.mint(address(this), AMOUNT);
Expand Down

0 comments on commit 0823d10

Please sign in to comment.