Skip to content

Conversation

@JkrishnaD
Copy link
Contributor

  • Added Kamino Lending v1 protocol folder
  • Added idl.json for Kamino Lending (parsed + cleaned for scenario use)
  • Added overrides.yaml with Reserve, Config, and Obligation health override templates
  • Registered Kamino protocol and templates in the scenario registry

This enables creating Kamino Lending reserve and obligation state scenarios in Surfpools.

@JkrishnaD
Copy link
Contributor Author

@lgalabru once check this kamino scenario integration

@lgalabru
Copy link
Member

thanks for this contribution @JkrishnaD!
could you document the provenance of the IDL?
question: what's the breakdown in terms of traffic for kamino v1 versus kamino v2?
is v1 still relevant? thanks!

@JkrishnaD
Copy link
Contributor Author

Hey @lgalabru,

Provence for the IDL

  • The Kamino IDL was taken directly from the Kamino Lending v1 repo (current version 1.24.0), which is written in Anchor 0.29.
  • Since Anchor 0.29 does not include discriminators in its IDL, I used the official command anchor idl convert to up-convert it to the new IDL spec that Surfpool expects.

Regarding kamino version

  • Kamino Lending uses a single lending program KLend. Here the version is like v1.12.6 in their GitHub repo
  • There is no separate “Kamino Lending v2” program, all production usage is on the same KLend program that has been incrementally updated.
  • Because of this, using the folder name kamino/v1 in Surfpools is accurate: it refers to the only existing lending program architecture, not the repo release tag.

@lgalabru
Copy link
Member

That's awesome thanks @JkrishnaD !

@lgalabru
Copy link
Member

@JkrishnaD would you mind refreshing your branch with main? I introduced conflicts after merging drift.
Thanks!

@JkrishnaD
Copy link
Contributor Author

@lgalabru Conflicts resloved 👍

@lgalabru lgalabru merged commit 634d498 into txtx:main Nov 26, 2025
3 checks passed
@JkrishnaD JkrishnaD deleted the scenario-kamino branch November 27, 2025 10:52
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.

2 participants