-
Notifications
You must be signed in to change notification settings - Fork 101
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
Fix issue with deadline #621
Conversation
CLA Assistant Lite All Contributors have signed the CLA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
|
@@ -101,7 +100,8 @@ export default function useUSDCPrice(currency?: Currency) { | |||
toDecimals: stablecoin.decimals, | |||
userAddress: account, | |||
// we dont care about validTo here, just use max | |||
validTo: MAX_VALID_TO_EPOCH, | |||
// FIXME: I guess we care now, using 10min. Future versions of the API will make it optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a PR in the backend which makes Also - I would suggest, even if it is optional, to set the The reason for this is that it is plausible (although we have no immediate plans to do this) that the fee be dependent on the duration of validity for the order (for example, we could add a premium for orders with higher validity than 1hour to account for gas price fluctuation risk). The intention with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Summary
Sets the deadline to 10min in the future instead of the max value (in 84 years!)
This is just a temporary fix while this is an optional field in the backend.