Skip to content

feat: add aave dex #276

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

sakulstra
Copy link

@sakulstra sakulstra commented Jun 12, 2024

Missing:

  • pricing
  • exchangeRate

Copy link

vercel bot commented Jun 12, 2024

@sakulstra is attempting to deploy a commit to the llamaswap Team on Vercel.

A member of the Team first needs to authorize it.

@sakulstra sakulstra marked this pull request as draft June 12, 2024 21:49
@@ -205,6 +205,8 @@ export const useTokenApprove = ({
}
});

if (!spender) return { isApproved: true, allowance: ethers.constants.MaxUint256 };
Copy link
Author

Choose a reason for hiding this comment

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

about this i'm not 100% sure, for aave withdrawals no approval is needed so i patched this here to not ask for an approval if spender is not set and then here: https://github.com/LlamaSwap/interface/pull/276/files#diff-d89e52e25c562008423ec8d1f219bbdd0d0be839bc31c4f4a737836b52ed12d6R600 i set it to undefined

@sakulstra sakulstra marked this pull request as ready for review June 15, 2024 15:38
@sakulstra
Copy link
Author

@0xngmi i think this should be ready for review now. Even the pricing finally works 😊

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