-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
@@ -79,3 +79,9 @@ export const GNO: Record<number, Token> = { | |||
'Gnosis' | |||
), | |||
} | |||
|
|||
export const USDC_BY_CHAIN: Record<SupportedChainId, Token> = { |
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.
called USDC_BY_CHAIN
because USDC
is a native const used across the app in uni code.
|
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.
USDC approval working nicely
gnoApproveData={{ | ||
approveCallback: gnoApproveCallback, | ||
approveState: gnoApproveState, | ||
}} | ||
usdcApproveData={{ | ||
approveCallback: usdcApproveCallback, | ||
approveState: usdcApproveState, | ||
}} |
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.
This is fine for now, but I'd rather have the approval logic inside the claim component.
We don't need to have this at the index, or do we?
Also, I still think we can do a generic approval flow rather than one for usdc and one for gno always even when they are not used.
Refactor for another day I guess
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.
probably easier, just didnt like "mapping" components having this logic
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.
done b7cea63 |
LGTM! |
Summary
Part of #2088 and #2087 and #2089 and closes #2151
Testing