PotLock / core

Potlock Core Contracts
MIT License
10 stars 3 forks source link

Add USD conversion rate OR amount to Donation #59

Open lachlanglen opened 8 months ago

lachlanglen commented 8 months ago

Title

When adding a donation record, attempt to fetch NEAR -> USD rate from Pyth and add to Donation, either as just rate or as a amount_usd field.

Summary

[Brief overview of the enhancement and why it is needed or desired]

Motivation

[More detailed explanation of the motivation for the enhancement, including any benefits it would provide]

Description

[Detailed description of the enhancement, including how it would work and any design considerations]

Alternatives

[Discussion of any alternative solutions that were considered and why the proposed solution is preferred]

Risks

[Identification and mitigation of any potential risks associated with the enhancement]

Acceptance Criteria

[List of criteria that must be met for the enhancement to be considered accepted]

Additional Information

[Any other relevant information, such as links to related issues or pull requests]