-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Server.getSACBalance
for fetching built-in token balance entries
#1046
Conversation
Size Change: +32.6 kB (+0.27%) Total Size: 12.2 MB
|
@Shaptic Do you think there would ever be confusion about being able to use this for custom tokens also? |
👍 , |
Great call on that @aristidesstaffieri and @sreuland; done in 8bc0e2d! |
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.
lgtm!
Server.getContractBalance
for fetching contract balance entriesServer.getSACBalance
for fetching contract balance entries
Server.getSACBalance
for fetching contract balance entriesServer.getSACBalance
for fetching built-in token balance entries
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.
great work!
What
This introduces a new method to the server:
which returns the following schema:
Why?
It allows developers to fetch how much of a particular SAC is stored within a contract. For example, you may have a liquidity pool contract and want to see its balance of USDC without actually invoking a function. You can achieve that by calling
See #1003.