-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
|
@alfetopito and @nenadV91 there is some clashing stuff here between your 2 branches. imo this should be merged into main and then @nenadV91 you rebase your work again |
@@ -145,7 +146,7 @@ export function useUserClaims(account: Account): UserClaims | null { | |||
return | |||
} | |||
|
|||
fetchClaims(account) | |||
fetchClaims(account, chainId) |
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.
nit: you know how i feel about these types of function args, would prefer an object as the others are made but i can live with this
@@ -365,3 +366,83 @@ function _hasNoInputOrInputIsGreaterThanClaimAmount( | |||
): input is Required<ClaimInput> { | |||
return !input.amount || JSBI.greaterThan(JSBI.BigInt(input.amount), JSBI.BigInt(claim.amount)) | |||
} | |||
|
|||
type LastAddress = string | |||
type ClaimAddressMapping = { [firstAddress: string]: LastAddress } |
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.
type ClaimAddressMapping = { [firstAddress: string]: LastAddress } | |
type ClaimAddressMapping = Record<string, LastAddress> |
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.
I agree, but it's all copied code. Wanted to not change what's not needed.
If you feel strongly I can completely refactor it.
Co-authored-by: David <[email protected]>
As discussed, merging to get the latest data onto |
Summary
Fetching claim data from claim repo https://github.com/gnosis/cow-merkle-drop
To Test
vCOW
on top)Note:
Claiming not yet wired up, it won't work
Commented out Michel's code on claim page, definitely not final
Background
Optional: Give background information for changes you've made, that might be difficult to explain via comments