Skip to content

Commit

Permalink
Merge pull request #51 from Giveth/47_remove_solana_addresses
Browse files Browse the repository at this point in the history
Remove solana donations from calculation
  • Loading branch information
mohammadranjbarz authored Mar 17, 2024
2 parents 3a02807 + 9f5fa09 commit dad9f35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/givethIoService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const getEligibleDonations = async (
transactionNetworkId
amount
givbackFactor
chainType
isProjectVerified
projectRank
powerRound
Expand Down Expand Up @@ -126,6 +127,7 @@ export const getEligibleDonations = async (
moment(donation.createdAt) < secondDate
&& moment(donation.createdAt) > firstDate
&& donation.valueUsd
&& donation.chainType == 'EVM'
&& donation.isProjectVerified
&& donation.status === 'verified'
)
Expand All @@ -136,6 +138,7 @@ export const getEligibleDonations = async (
moment(donation.createdAt) < secondDate
&& moment(donation.createdAt) > firstDate
&& donation.valueUsd
&& donation.chainType == 'EVM'
&& !donation.isProjectVerified
&& donation.status === 'verified'
)
Expand Down Expand Up @@ -276,6 +279,7 @@ export const getVerifiedPurpleListDonations = async (beginDate: string, endDate:
transactionId
transactionNetworkId
amount
chainType
isProjectVerified
project {
slug
Expand All @@ -299,6 +303,7 @@ export const getVerifiedPurpleListDonations = async (beginDate: string, endDate:
moment(donation.createdAt) < secondDate
&& moment(donation.createdAt) > firstDate
&& donation.valueUsd
&& donation.chainType == 'EVM'
&& donation.isProjectVerified
&& donation.status === 'verified'
)
Expand Down
2 changes: 1 addition & 1 deletion src/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
"type": "string",
"description": "If you want to see json here set no, but if you want to download a file set yes",
"default": "no",
"enum": ["yes","no"],
"enum": ["no", "optimism","all-other-chains", "NICE" ],
"in": "query"
}
],
Expand Down
1 change: 1 addition & 0 deletions src/types/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export interface GivethIoDonation {
transactionNetworkId: number,
fromWalletAddress: string,
toWalletAddress: string
chainType: string
source: string,
user: {
name: string,
Expand Down

0 comments on commit dad9f35

Please sign in to comment.