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
1,103 changes: 1,103 additions & 0 deletions awsDepositer/ReaperAutoCompoundMasonry.json

Large diffs are not rendered by default.

Binary file added awsDepositer/awsDepositer.zip
Binary file not shown.
19 changes: 19 additions & 0 deletions awsDepositer/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { ethers } = require("ethers");

const STRATEGY_ADDR = "0xCCfC062B025C6753a87C576b4Cdf85603BA0Fedc";
const abi = require('./ReaperAutoCompoundMasonry.json');

exports.handler = async () => {
let walletKey = process.env.WALLET_KEY;
const provider = new ethers.providers.JsonRpcProvider("https://rpcapi.fantom.network", 250);
const walletSigner = new ethers.Wallet(walletKey, provider);
const contract = new ethers.Contract(STRATEGY_ADDR, abi, walletSigner);

try {
const tx = await contract.deposit();
} catch(err) {
return err;
}

return true;
};
1,406 changes: 1,406 additions & 0 deletions awsDepositer/package-lock.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions awsDepositer/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"devDependencies": {
"ethers": "^5.5.1"
}
}
Loading