InnerI's picture
Upload 2 files
ddcff90 verified
raw
history blame contribute delete
548 Bytes
const hre = require("hardhat");
async function main() {
const treasuryAddr = process.env.DAO_TREASURY;
const usdc = await hre.ethers.getContractAt("ERC20", "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913");
const amount = hre.ethers.parseUnits("1000", 6); // $1000
// Approve & fund (run with your private key)
await usdc.approve(treasuryAddr, amount);
const treasury = await hre.ethers.getContractAt("Treasury", treasuryAddr);
await treasury.fund(amount);
console.log("Funded $1000 → 1000 votes earned!");
}
main();