Created
January 8, 2024 15:27
-
-
Save zhe-t/2ef6af17a3a1c30463005a09a4959d69 to your computer and use it in GitHub Desktop.
Common adapter response type for SAC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface AdapterResponse { | |
// User's address | |
address: string; | |
// Number of tokens, should already be scaled for UI display | |
tokens: number; | |
// Whether the user is eligible (we can calculate based on tokens if not available) | |
isEligible: boolean; | |
// If there was an error (rate limit, etc), this should be populated | |
error: string | null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment