Skip to content
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

Arf pool migrate #404

Merged
merged 7 commits into from
Dec 31, 2024
Merged

Arf pool migrate #404

merged 7 commits into from
Dec 31, 2024

Conversation

shan-57blocks
Copy link
Collaborator

No description provided.

@shan-57blocks shan-57blocks requested review from ljiatu and mliu December 31, 2024 15:21
@shan-57blocks shan-57blocks changed the title Get lender info from rpc Arf pool migrate Dec 31, 2024
@shan-57blocks shan-57blocks force-pushed the get-lender-info-from-rpc branch from 2ceb9d4 to 96b3372 Compare December 31, 2024 15:23
useEffect(() => {
if (account && vaultContract) {
const fetchData = async () => {
const redemptionRecords = await vaultContract.lenderRedemptionRecords(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should be redemptionRecord.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

)
setRedemptionStatus({
numSharesRequested: redemptionRecords.numSharesRequested.toString(),
withdrawableAssets: redemptionRecords.totalAmountProcessed.toString(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be totalAmountProcessed - totalAmountWithdrawn. FWIW, there is a withdrawablAssets view function.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

ljiatu
ljiatu previously approved these changes Dec 31, 2024
Copy link
Contributor

@ljiatu ljiatu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but @mliu please double check.

mliu
mliu previously approved these changes Dec 31, 2024
@shan-57blocks shan-57blocks dismissed stale reviews from mliu and ljiatu via f94b94b December 31, 2024 16:12
@shan-57blocks shan-57blocks merged commit 9900c83 into develop Dec 31, 2024
2 checks passed
@shan-57blocks shan-57blocks deleted the get-lender-info-from-rpc branch December 31, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants