Skip to content

Commit

Permalink
drip for lending
Browse files Browse the repository at this point in the history
  • Loading branch information
mrq1911 committed Oct 29, 2024
1 parent 8d060d5 commit 94cbe26
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/dripper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,16 @@ const drip = async (address: string): Promise<DripStatus> => {
console.log('dripping to', address, ' => ', hydraDxAddress);

if (api && api.isConnected) {
const {currencies} = api.tx;
const {currencies, utility} = api.tx;

// TODO: make configurable
const tx = currencies.transfer(hydraDxAddress, "20", new BN('1000000000000000000')); // ETH
const tx = utility.batchAll([
currencies.transfer(hydraDxAddress, "20", new BN('2222000000000000000')), // ETH
currencies.transfer(hydraDxAddress, "5", new BN('22220000000000')), // DOT
currencies.transfer(hydraDxAddress, "10", new BN('2222000000')), // USDT
currencies.transfer(hydraDxAddress, "21", new BN('2222000000')), // USDC
currencies.transfer(hydraDxAddress, "3", new BN('22220000')), // WBTC
]);

await tx
.signAndSend(fundingAccount, {nonce: nextNonce()})
Expand Down

0 comments on commit 94cbe26

Please sign in to comment.