Skip to content

Commit

Permalink
Add TODOs and update licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincheng96 committed Oct 12, 2023
1 parent a6418d7 commit 0ccd691
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/CometWrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ contract CometWrapper is ERC4626, IERC7246, CometHelpers {
if (shares == 0) revert ZeroShares();

if (msg.sender != owner) {
// TODO: spend encumbrance, then allowance
spendAllowanceInternal(owner, msg.sender, shares);
}

Expand All @@ -167,6 +168,7 @@ contract CometWrapper is ERC4626, IERC7246, CometHelpers {
function redeem(uint256 shares, address receiver, address owner) public override returns (uint256) {
if (shares == 0) revert ZeroShares();
if (msg.sender != owner) {
// TODO: spend encumbrance, then allowance
spendAllowanceInternal(owner, msg.sender, shares);
}

Expand Down
2 changes: 1 addition & 1 deletion src/vendor/CometExtInterface.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: BUSL-1.1
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;

struct TotalsBasic {
Expand Down
2 changes: 1 addition & 1 deletion src/vendor/CometInterface.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: BUSL-1.1
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;

import "./CometMainInterface.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/vendor/CometMainInterface.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: BUSL-1.1
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;

struct AssetInfo {
Expand Down
2 changes: 1 addition & 1 deletion src/vendor/CometMath.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: BUSL-1.1
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/vendor/ICometRewards.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: ISC
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;

interface ICometRewards {
Expand Down
3 changes: 1 addition & 2 deletions src/vendor/IERC7246.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: BSD-3-Clause

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;

/**
Expand Down
1 change: 1 addition & 0 deletions test/Encumber.t.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;

import { CoreTest, CometHelpers, CometWrapper, ERC20, ICometRewards } from "./CoreTest.sol";
Expand Down

0 comments on commit 0ccd691

Please sign in to comment.