You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we lookup a user's cosmos wallet address to update their roles, we currently try to find any wallet address that gets used, in descending order of address. There are a few edgecases here:
If a user has never re-joined since we started storing the wallet address, this will fail to find a wallet address
If a user is using multiple cosmos wallets, this may find the wrong address
If a user has a new cosmos wallet address, this may find the wrong address
We identified a handful of possible fixes to the DB implementation if any of these are an issue:
The getCosmosHubAddressFromDiscordId should also filter on the discord guild ID. In other words, we should allow users to associate one wallet per discord guild that they're joining from
The function should lookup the most recently used wallet address for this user + guild combination via the created_at column, so that we may use the one most likely to be up-to-date
If still no wallet is found, we should have some prompting for the guild admin to ask that user to rejoin
The text was updated successfully, but these errors were encountered:
When we lookup a user's cosmos wallet address to update their roles, we currently try to find any wallet address that gets used, in descending order of address. There are a few edgecases here:
We identified a handful of possible fixes to the DB implementation if any of these are an issue:
getCosmosHubAddressFromDiscordId
should also filter on the discord guild ID. In other words, we should allow users to associate one wallet per discord guild that they're joining fromcreated_at
column, so that we may use the one most likely to be up-to-dateThe text was updated successfully, but these errors were encountered: