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 ERC: Interest Rate Swaps #178

Merged
merged 79 commits into from
Mar 19, 2024
Merged

Add ERC: Interest Rate Swaps #178

merged 79 commits into from
Mar 19, 2024

Conversation

Edoumou
Copy link
Contributor

@Edoumou Edoumou commented Dec 31, 2023

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.

@eip-review-bot
Copy link
Collaborator

eip-review-bot commented Dec 31, 2023

File ERCS/erc-7586.md

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

@eip-review-bot eip-review-bot changed the title Add ERC: Interest Rate Swaps Add ERC: Iterest Rate Swaps Dec 31, 2023
@Edoumou
Copy link
Contributor Author

Edoumou commented Dec 31, 2023

@axic, @g11tech, @Pandapip1, @SamWilsn, @xinbenlv @abcoathup

Could someone tell what should be the EIP number for this new proposal ?

I know that it's no longer the PR number.

@Edoumou Edoumou changed the title Add ERC: Iterest Rate Swaps Add ERC: Interest Rate Swaps Dec 31, 2023
@github-actions github-actions bot added the w-ci label Dec 31, 2023
@abcoathup
Copy link
Contributor

abcoathup commented Dec 31, 2023

Could someone tell what should be the EIP number for this new proposal ?
@Edoumou
The ERC needs at least a specification before it can be issued a number. Once you have written a spec feel free to ping me and I can issue a number.

ERCS/erc-xxxx.md Outdated Show resolved Hide resolved
@eip-review-bot eip-review-bot changed the title Add ERC: Interest Rate Swaps Add ERC: Iterest Rate Swaps Dec 31, 2023
@github-actions github-actions bot removed the w-ci label Dec 31, 2023
@eip-review-bot eip-review-bot changed the title Add ERC: Iterest Rate Swaps Add ERC: Interest Rate Swaps Dec 31, 2023
@github-actions github-actions bot added the w-ci label Dec 31, 2023
Edoumou and others added 2 commits March 7, 2024 00:15
Co-authored-by: Sam Wilson <[email protected]>
Co-authored-by: Sam Wilson <[email protected]>
@github-actions github-actions bot removed the w-ci label Mar 6, 2024
Edoumou and others added 2 commits March 7, 2024 00:20
Co-authored-by: Sam Wilson <[email protected]>
Co-authored-by: Sam Wilson <[email protected]>
@github-actions github-actions bot added the w-ci label Mar 6, 2024
@github-actions github-actions bot removed the w-ci label Mar 6, 2024
@Edoumou
Copy link
Contributor Author

Edoumou commented Mar 7, 2024

@axic, @g11tech, @Pandapip1, @SamWilsn, @xinbenlv @abcoathup, @eip-review-bot

I resolved all the issues that were discussed on Monday, but the PR is still not merged, requiring the Code owner review from eip-review-bot.

Should I send a request for the next EIP Editing Office, or the pull request will be merged automatically ?

Copy link

The commit a13fe80 (as a parent of 2ce2968) contains errors.
Please inspect the Run Summary for details.

@github-actions github-actions bot added the w-ci label Mar 18, 2024
@github-actions github-actions bot removed the w-ci label Mar 18, 2024
---
eip: 7586
title: Interest Rate Swaps
description: Interest rate swaps derivative contracts
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
description: Interest rate swaps derivative contracts
description: On-chain implementation of derivative contracts swapping fixed and floating interest rates.

Feel free to continue improving this, but your description needs to be more descriptive than just your title.


/**
* @notice Returns the notional amount in unit of asset to be transferred when swapping IRS. This amount serves as the basis for calculating the interest payments, and may not be exchanged
* Example: If the two parties aggreed to swap interest rates in USDC, then the notional amount may be equal to 1,000,000 USDC
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think removing "USDC" here would make it more clear.

Comment on lines +100 to +103
/**
* @notice Returns the interest payment frequency
*/
function paymentFrequency() external view returns(uint256);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is in seconds? Might be good to note that in the comment.

* @notice Returns an array of specific dates on which the interest payments are exchanged. Each date MUST be a Unix timestamp like the one returned by block.timestamp
* The length of the array returned by this function MUST equal the total number of swaps that should be realized
*
* OPTIONAL
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does "OPTIONAL" mean here: that the contract doesn't need to implement this function, or that this function may revert? Should make that clear in the comment.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We prefer SVG graphics if you can, or failing that, please provide a PNG.

@SamWilsn SamWilsn merged commit 9d4c3b3 into ethereum:master Mar 19, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants