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

Pool 1789 reserve does not correctly implement #217

Merged
merged 4 commits into from
Oct 14, 2021

Conversation

asselstine
Copy link
Contributor

@asselstine asselstine commented Oct 14, 2021

@PierrickGT PierrickGT self-assigned this Oct 14, 2021
@@ -8,6 +8,9 @@ import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import "./interfaces/IReserve.sol";
import "./libraries/ObservationLib.sol";
import "./libraries/RingBufferLib.sol";

import "hardhat/console.sol";
Copy link
Contributor

Choose a reason for hiding this comment

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

✂️

@@ -225,12 +237,28 @@ contract Reserve is IReserve, Manageable {
}
}

function _getOldestObservation(uint24 _nextIndex)
Copy link
Contributor

Choose a reason for hiding this comment

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

Add Natspec doc

@@ -254,19 +254,6 @@ describe('Reserve', () => {
});
});

describe('_getReserveAccumulatedAt()', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should still test this function for edge cases. That's why coverage has decreased.

@asselstine
Copy link
Contributor Author

@asselstine asselstine merged commit 09e247f into master Oct 14, 2021
@asselstine asselstine deleted the pool-1789-reserve-does-not-correctly-implement branch October 14, 2021 04:21
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.

None yet

2 participants