-
Notifications
You must be signed in to change notification settings - Fork 4
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
AcreSDK: current position #233
Conversation
e242fee
to
da7f19e
Compare
8a660f8
to
7814ae1
Compare
Let's add PR description. |
1bcacf1
to
ae2b70b
Compare
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.
We need to deploy the latest version of stBTC and update this artifact. The contract deployed under 0xF99139f09164B092bD9e8558984Becfb0d2eCb87
doesn't have assetsBalanceOf
function. cc @nkuba
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! Let's hold with merge until we redeploy stBTC
contract and update the stBTC.json
artifact.
✅ Deploy Preview for acre-dapp-testnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
SDK: Return current position
SDK exposes the current staker's balances with two values:
stBTC shares balance (Obtained from: stBTC.balanceOf(address))
tBTC assets balance (Obtained from: stBTC.assetsBalanceOf(address) - depends on #221)