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

Add EIP: Sharable interface for Borrowing #6882

Closed
wants to merge 4 commits into from

Conversation

briankostar
Copy link

When opening a pull request to submit a new EIP, please use the suggested template: https://github.com/ethereum/EIPs/blob/master/eip-template.md

We have a GitHub bot that automatically merges some PRs. It will merge yours immediately if certain criteria are met:

  • The PR edits only existing draft PRs.
  • The build passes.
  • Your GitHub username or email address is listed in the 'author' header of all affected PRs, inside .
  • If matching on email address, the email address is the one publicly listed on your GitHub profile.

@eth-bot
Copy link
Collaborator

eth-bot commented Apr 15, 2023

File EIPS/eip-6882.md

Requires 1 more reviewers from @axic, @Pandapip1, @SamWilsn, @xinbenlv

@eth-bot eth-bot changed the title add eip 6882: standardized borrowing Add EIP: Standardized Borrowing Apr 15, 2023
@eth-bot eth-bot added e-consensus Waiting on editor consensus e-review Waiting on editor to review labels Apr 15, 2023
@github-actions github-actions bot added the w-ci Waiting on CI to pass label Apr 15, 2023
@eth-bot eth-bot changed the title Add EIP: Standardized Borrowing Add EIP: Sharable interface for Borrowing Apr 15, 2023
@github-actions github-actions bot removed the w-ci Waiting on CI to pass label Apr 15, 2023
@YaroslavPysanskyi

This comment was marked as off-topic.

@github-actions
Copy link

The commit 431c1fd (as a parent of b22440f) contains errors.
Please inspect the Run Summary for details.

@github-actions github-actions bot added the w-ci Waiting on CI to pass label Apr 15, 2023
@github-actions
Copy link

There has been no activity on this pull request for 2 weeks. It will be closed after 3 months of inactivity. If you would like to move this PR forward, please respond to any outstanding feedback or add a comment indicating that you have addressed all required feedback and are ready for a review.

@github-actions github-actions bot added the w-stale Waiting on activity label Sep 17, 2023
eip: 6882
title: Sharable interface for Borrowing
description: Defines interface for borrowing from a defi pool
author: 0xbakuchi (@massun-onibakuchi), Takeru Natsui(@cotoneum), Brian Ko (@briankostar)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
author: 0xbakuchi (@massun-onibakuchi), Takeru Natsui(@cotoneum), Brian Ko (@briankostar)
author: 0xbakuchi (@massun-onibakuchi), Takeru Natsui (@cotoneum), Brian Ko (@briankostar)

@@ -0,0 +1,112 @@
---
eip: 6882
title: Sharable interface for Borrowing
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
title: Sharable interface for Borrowing
title: Sharable Interface for Borrowing

title: Sharable interface for Borrowing
description: Defines interface for borrowing from a defi pool
author: 0xbakuchi (@massun-onibakuchi), Takeru Natsui(@cotoneum), Brian Ko (@briankostar)
discussions-to: https://ethereum-magicians.org/t/eip-5313-light-contract-ownership/10052
Copy link
Contributor

Choose a reason for hiding this comment

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

This discussions-to link is for a different EIP. You should create your own for this one.


The key word “MUST” in this document is to be interpreted as described in RFC 2119.

Every contract compliant with this EIP MUST implement the `EIP6882` interface.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Every contract compliant with this EIP MUST implement the `EIP6882` interface.
Every contract compliant with this EIP MUST implement the `ILendingMarket` interface.


## Rationale

The rationale behind creating a standard API for borrowing tokens is to improve the user and developer experience when interacting with lending protocols. By providing a borrowing aggregator, users can access aggregated data from multiple lending protocols in a single place and easily move funds between them to achieve the best borrowing rates.
Copy link
Contributor

Choose a reason for hiding this comment

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

This paragraph belongs in the Motivation section. The Rationale section should justify individual technical choices made within the proposal itself (eg. why withdraw returns the final amount withdrawn), while the Motivation section justifies the proposal as a whole.

Comment on lines +102 to +104
## Test Cases

Test cases for the proposed EIP will be provided in a well-written test template for contracts that comply with the standard.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## Test Cases
Test cases for the proposed EIP will be provided in a well-written test template for contracts that comply with the standard.

You can omit this section for now, and put it back when you add your tests cases to the ../assets/eip-6882/ directory.


## Security Considerations

By providing a well-written test template for contracts that comply with the standard, the security of the contracts can be improved, leading to better user experience and higher overall security.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
By providing a well-written test template for contracts that comply with the standard, the security of the contracts can be improved, leading to better user experience and higher overall security.
<!-- TODO -->

The paragraph currently here doesn't really provide any new information or considerations that isn't already well-known in the smart contract community. If you have specific considerations, do list them here.

@github-actions github-actions bot removed the w-stale Waiting on activity label Sep 19, 2023
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

There has been no activity on this pull request for 2 weeks. It will be closed after 3 months of inactivity. If you would like to move this PR forward, please respond to any outstanding feedback or add a comment indicating that you have addressed all required feedback and are ready for a review.

@github-actions github-actions bot added the w-stale Waiting on activity label Oct 7, 2023
@SamWilsn
Copy link
Contributor

I am closing this pull request because we are in the process of separating EIPs and ERCs into distinct repositories. Unfortunately, as far as we are aware, GitHub does not provide any tools to ease this migration, so every pull request will need to be re-opened manually.

As this is a PR to create / modify an ERC, I will kindly ask you to redirect this to the new repository at ethereum/ERCs. We have prepared a guide to help with the process.

If there is relevant history here, please link to this PR from the new pull request.

On behalf of the EIP Editors, I apologize for this inconvenience.

@SamWilsn SamWilsn closed this Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e-consensus Waiting on editor consensus e-review Waiting on editor to review w-ci Waiting on CI to pass w-stale Waiting on activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants