Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ contract GrumpyCatLockboxAdapter is IXReceiver {
bytes calldata _callData
) external payable returns (bytes32) {
erc20.transferFrom(msg.sender, address(this), _amount);
erc20.approve(address(lockbox), _amount);
lockbox.deposit(_amount);
xerc20.approve(address(connext), _amount);

Expand Down
3 changes: 1 addition & 2 deletions deploy/GrumpyCat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
if (!deployer) {
throw new Error(`Cannot find signer to deploy with`);
}
console.log("\n============================= Deploying MidasProtocolTarget ===============================");
console.log("\n============================= Deploying GrumpyCatLockboxAdapter ===============================");
console.log("deployer: ", deployer.address);
console.log("constructorArgs:", args);

// Deploy contract
const adapter = await hre.deployments.deploy("GrumpyCatLockboxAdapter", {
from: deployer.address,
args: args,
skipIfAlreadyDeployed: true,
log: true,
// deterministicDeployment: true,
});
Expand Down
28 changes: 14 additions & 14 deletions deployments/mainnet/GrumpyCatLockboxAdapter.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ function createConfig(network: string) {
}

function getNetworkUrl(networkType: string) {
if (networkType === "polygon")
if (networkType === "mainnet")
return alchemyApiKey ? `https://eth-mainnet.alchemyapi.io/v2/${alchemyApiKey}` : "https://eth.llamarpc.com";
else if (networkType === "polygon")
return alchemyApiKey ? `https://polygon-mainnet.g.alchemy.com/v2/${alchemyApiKey}` : "https://polygon.llamarpc.com";
else if (networkType === "arbitrum")
return alchemyApiKey ? `https://arb-mainnet.g.alchemy.com/v2/${alchemyApiKey}` : "https://arb1.arbitrum.io/rpc";
Expand Down