Skip to content

Commit

Permalink
Use Gnosis giv token for getting price of GIV
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed Sep 12, 2024
1 parent 52d5afa commit 492aab4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 2 additions & 5 deletions src/resolvers/donationResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,8 @@ export class DonationResolver {
}
const usdValueSentAmountInPowerRound =
await getSumOfGivbackEligibleDonationsForSpecificRound({});
const givToken = await findTokenByNetworkAndSymbol(
NETWORK_IDS.MAIN_NET,
'GIV',
);
const givPrice = await getTokenPrice(NETWORK_IDS.MAIN_NET, givToken);
const givToken = await findTokenByNetworkAndSymbol(NETWORK_IDS.XDAI, 'GIV');
const givPrice = await getTokenPrice(NETWORK_IDS.XDAI, givToken);

const maxSentGivInRound = 1_000_000;
const allocatedGivTokens = Math.ceil(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ const RecordInput = ({ index, record, updateRecord, removeRecord }) => (
<Label>Matching Fund Display Value</Label>
<Input
value={record.matchingFund}
onChange={e =>
updateRecord(index, 'matchingFund', e.target.value)
}
onChange={e => updateRecord(index, 'matchingFund', e.target.value)}
required
/>
</FormGroup>
Expand Down

0 comments on commit 492aab4

Please sign in to comment.