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

Integration of Aave to support loans with NFTs as collateral #156

Merged
merged 63 commits into from
Oct 14, 2021

Conversation

aaitor
Copy link
Member

@aaitor aaitor commented Aug 31, 2021

Description

Implementation of the Aave integration:

  • Extracting NFTLock interface as preparation for the new ERC-721 NFT lock condition
  • Implementation of NFT Lock condition for ERC-721 based NFTs
  • bumping to v1.2.0

Pending tasks

  • Have the tests in green again
  • In the e2e flows verify that previous conditions are fulfilled before execute
  • Add ACL to the Vault
  • Explore flexible AAve loans (Nice to Have)

Is this PR related with an open issue?

Related to Issue #

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Follows the code style of this project.
  • Tests Cover Changes
  • Documentation

@aaitor aaitor added the wip label Sep 1, 2021
@aaitor aaitor marked this pull request as ready for review October 7, 2021 09:30
@aaitor aaitor requested review from a team as code owners October 7, 2021 09:30
@aaitor aaitor requested a review from mrsmkl October 8, 2021 10:06
require(
_nftAmount == 0 || (_nftAmount == 1 && token.ownerOf(uint256(_did)) == msg.sender),
_nftAmount == 0 ||
(_nftAmount == 1 && (nftOwner == msg.sender || nftOwner == _lockConditionAddress)),
Copy link
Contributor

Choose a reason for hiding this comment

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

If lockConditionAddress has an NFT and this contract is able to transfer them, then somebody could create another condition, and use it to transfer the NFT away.

Copy link
Member Author

Choose a reason for hiding this comment

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

This will be resolved as an independent issue

@aaitor aaitor merged commit ce9ce17 into master Oct 14, 2021
@aaitor aaitor deleted the feature/aave_integration branch October 14, 2021 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants