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

Solana details page #302

Merged
merged 3 commits into from
Sep 12, 2024
Merged

Solana details page #302

merged 3 commits into from
Sep 12, 2024

Conversation

shan-57blocks
Copy link
Collaborator

@shan-57blocks shan-57blocks commented Sep 12, 2024

Put solana related all under solana folder

@shan-57blocks shan-57blocks requested a review from mliu September 12, 2024 08:28
@shan-57blocks shan-57blocks changed the base branch from develop to solana September 12, 2024 08:28
amount.muln(2),
) ||
new BN(
borrowerUnderlyingTokenAccountInfo.delegatedAmount.toString(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Curious, is the toString necessary? Does bigint to BN conversion not work?

@@ -132,7 +132,7 @@ export class HumaSolanaProgramHelper {
new PublicKey(poolInfo.underlyingMint.address),
new PublicKey(sentinelAddress), // delegate
publicKey, // owner of the wallet
amount.muln(2), // amount
BigInt(amount.muln(2).toString()), // amount
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also wondering here, does BN not delegate the proper amount?

@shan-57blocks shan-57blocks merged commit 0bd4a98 into solana Sep 12, 2024
@shan-57blocks shan-57blocks deleted the solana-details-page branch September 12, 2024 14:28
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