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

Error Message: CPI disabled for this instruction. #30

Open
yurushao opened this issue Feb 7, 2025 · 0 comments
Open

Error Message: CPI disabled for this instruction. #30

yurushao opened this issue Feb 7, 2025 · 0 comments

Comments

@yurushao
Copy link

yurushao commented Feb 7, 2025

Hi team, we're building Kamino lending integration in our program at GLAM https://github.com/glamsystems/glam, but we got "Error Message: CPI disabled for this instruction." when making CPI calls to depositReserveLiquidityAndObligationCollateral. It seems only whitelisted programs are allowed?
https://github.com/Kamino-Finance/klend/blob/master/programs/klend/src/utils/consts.rs#L147-L164

We also noticed that the other ix depositReserveLiquidity allows CPI. Is the difference that depositReserveLiquidityAndObligationCollateral allows borrowing with collateral?

How can we get our program ID whitelisted? Please advise. Thank you!

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

No branches or pull requests

1 participant