Skip to content

Commit

Permalink
Move ens address to constant parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed Dec 5, 2023
1 parent 16e106c commit 78be225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions migration/1701756190381-create_donationeth_user.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

const donationDotEthAddress = '0x6e8873085530406995170Da467010565968C7C62'; // Address behind donation.eth ENS address;
const matchingFundDonationsFromAddress =
(process.env.MATCHING_FUND_DONATIONS_FROM_ADDRESS as string) ||
'0x6e8873085530406995170Da467010565968C7C62'; // Address behind donation.eth ENS address;
donationDotEthAddress;

export class createDonationethUser1701756190381 implements MigrationInterface {
async up(queryRunner: QueryRunner): Promise<void> {
Expand Down
3 changes: 2 additions & 1 deletion src/services/donationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ export const sendSegmentEventForDonation = async (params: {
export const insertDonationsFromQfRoundHistory = async (): Promise<void> => {
const qfRoundHistories =
await getQfRoundHistoriesThatDontHaveRelatedDonations();
const donationDotEthAddress = '0x6e8873085530406995170Da467010565968C7C62'; // Address behind donation.eth ENS address;
const powerRound = (await getPowerRound())?.round || 1;
if (qfRoundHistories.length === 0) {
logger.debug(
Expand All @@ -461,7 +462,7 @@ export const insertDonationsFromQfRoundHistory = async (): Promise<void> => {

const matchingFundFromAddress =
(process.env.MATCHING_FUND_DONATIONS_FROM_ADDRESS as string) ||
'0x6e8873085530406995170Da467010565968C7C62'; // Address behind donation.eth ENS address;
donationDotEthAddress;
const user = await findUserByWalletAddress(matchingFundFromAddress);
if (!user) {
logger.error(
Expand Down

0 comments on commit 78be225

Please sign in to comment.