Skip to content

Commit 88dd324

Browse files
ith-harveyIan Harvey
and
Ian Harvey
authored
final cleanup of TODO and fixme (#530)
Co-authored-by: Ian Harvey <iharvey@comcast.net>
1 parent 2855ee1 commit 88dd324

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

src/PoolInfoUtils.sol

-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ contract PoolInfoUtils {
246246
/**
247247
* @notice Returns the proportion of interest rate which is awarded to lenders;
248248
* the remainder accumulates in reserves.
249-
* TODO: move in poolUtilizationInfo
250249
*/
251250
function lenderInterestMargin(address ajnaPool_)
252251
external

tests/forge/ERC721Pool/ERC721DSTestPlus.sol

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ abstract contract ERC721DSTestPlus is DSTestPlus, IERC721PoolEvents {
100100
{
101101
uint256 fractionOfNftRemaining = lpsAsCollateral % 1e18;
102102
assertLt(fractionOfNftRemaining, 1e18);
103-
// TODO: eliminate the 1 wei workaround for rounding error
103+
104+
// 1 wei workaround due to rounding
104105
depositRequired = Maths.wmul(1e18 - fractionOfNftRemaining + 1, price);
105106
}
106107
deal(_pool.quoteTokenAddress(), lender, depositRequired);

tests/forge/PositionManager.t.sol

+1-7
Original file line numberDiff line numberDiff line change
@@ -2426,7 +2426,7 @@ contract PositionManagerERC20PoolTest is PositionManagerERC20PoolHelperContract
24262426
_positionManager.tokenURI(1);
24272427

24282428
address testAddress = makeAddr("testAddress");
2429-
uint256 mintAmount = 10000 * 1e18;
2429+
uint256 mintAmount = 10_000 * 1e18;
24302430

24312431
_mintQuoteAndApproveManagerTokens(testAddress, mintAmount);
24322432

@@ -2465,12 +2465,6 @@ contract PositionManagerERC20PoolTest is PositionManagerERC20PoolHelperContract
24652465
string memory uriString = _positionManager.tokenURI(tokenId);
24662466
// emit log(uriString);
24672467
assertGt(bytes(uriString).length, 0);
2468-
2469-
// FIXME: split out uri string from encoding metadata, and parse resulting json object
2470-
// decode uri string and check attributes
2471-
// bytes memory data = Base64.decode(uriString);
2472-
// DecodeTokenURIParams memory decodedURI = abi.decode(data, (DecodeTokenURIParams));
2473-
// assertEq(decodedURI.name, "Ajna Token #1");
24742468
}
24752469

24762470
}

tests/forge/RewardsManager.t.sol

-3
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ contract RewardsManagerTest is DSTestPlus {
216216
epochsClaimed_ = new uint256[](numberOfAuctions_);
217217
uint256 claimEpoch = lastClaimed_; // starting index, not inclusive
218218

219-
// FIXME: this doesn't work for non starting auction epochs
220219
for (uint256 i = 0; i < numberOfAuctions_; i++) {
221220
epochsClaimed_[i] = claimEpoch + 1;
222221
claimEpoch += 1;
@@ -708,7 +707,6 @@ contract RewardsManagerTest is DSTestPlus {
708707
reward: 0.298393183929769729 * 1e18,
709708
updateRatesReward: 0
710709
});
711-
// TODO: check reward amount vs expected from burn
712710
}
713711

714712
function testMultiPeriodRewardsSingleClaim() external {
@@ -1498,7 +1496,6 @@ contract RewardsManagerTest is DSTestPlus {
14981496
assertGt(_ajnaToken.balanceOf(_updater), 0);
14991497

15001498
// calculate rewards earned and compare to percentages for updating and claiming
1501-
// FIXME: can't calculate this for use in updateBucketExchangeRatesAndClaim as current exchange rate hasn't been updated yet
15021499
uint256 rewardsEarned = _rewardsManager.calculateRewards(tokenIdOne, _poolOne.currentBurnEpoch());
15031500
assertGt(rewardsEarned, 0);
15041501

0 commit comments

Comments
 (0)