Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DG: fetch token/match info only if token available #562

Merged
merged 1 commit into from
May 16, 2024

Conversation

0xKurt
Copy link
Member

@0xKurt 0xKurt commented May 15, 2024

To enable using custom tokes on direct grants, this PR makes the amount in usd and match token info optional. Since direct grants does not have a matching pool and a match token and we do not display the USD value on the frontend, we default them to 0.

That allows us to insert the application payout without this information, else the payout would be dropped.

Copy link
Member

@codenamejason codenamejason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it's working 🤗

This is the token caught without price data as exptected -> https://sepolia.etherscan.io/address/0x601Da861335533c38Bc2CAeb90709c5371762559

Screenshot 2024-05-15 at 10 05 22 PM

@thelostone-mc thelostone-mc merged commit 4607560 into main May 16, 2024
2 checks passed
@thelostone-mc thelostone-mc deleted the dg-token-updates branch May 16, 2024 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants