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

Create lending pool add and remove liquidity transactions #83

Open
wants to merge 4 commits into
base: fix/swap-examples
Choose a base branch
from

Conversation

gulcinuras
Copy link
Contributor

  • Use Algo-USDC lending pool as example
  • In order to get USDC (if the account doesn't have enough asset balance), use swap function with Algo
  • Since ALGO to USDC swap was only in v1_1 pool, include v1_1 swap to the example function

Note:

  • We can also parse the lending pool info from global state, but I think for this scope getting the fAsset_ids and the application_ids from global_state is not really necessary

Related Ticket:

…dity transactions

- Use Algo-USDC lending pool as example
- In order to get USDC (if the account doesn't have enough asset balance), use swap function with Algo
- Since ALGO to USDC swap was only in v1_1 pool, include v1_1 swap to the example function
Note:
- We can also parse the lending pool info from global state, but I think for this scope getting the fAsset_ids and the application_ids from global_state is not really necessary
@gulcinuras gulcinuras self-assigned this Mar 3, 2024
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.

1 participant