Skip to content

Instantly share code, notes, and snippets.

@zhe-t
Created January 8, 2024 15:27
Show Gist options
  • Save zhe-t/2ef6af17a3a1c30463005a09a4959d69 to your computer and use it in GitHub Desktop.
Save zhe-t/2ef6af17a3a1c30463005a09a4959d69 to your computer and use it in GitHub Desktop.
Common adapter response type for SAC
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