Skip to content

Commit

Permalink
Merge pull request #118 from term-finance/yearn-validate-auction-exis…
Browse files Browse the repository at this point in the history
…tence-fix

yearn validation auction existence fix
  • Loading branch information
aazhou1 authored Dec 20, 2024
2 parents 373e3bd + 4a49ef0 commit 1339629
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ const config: HardhatUserConfig = {
paths: {
sources: "./src", // Specify the main directory for source files
},
solidity: "0.8.23",
paths: {
sources: "./src", // Your contract source directory
libraries: "./lib", // Point Hardhat to Foundry's lib folder
cache: "./cache", // Keep Foundry and Hardhat caches separate
artifacts: "./artifacts", // Keep artifacts separate
},

networks: {
sepolia: {
Expand Down
3 changes: 1 addition & 2 deletions src/TermDiscountRateAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,8 @@ contract TermDiscountRateAdapter is ITermDiscountRateAdapter, AccessControl {
}


function _validateAuctionExistence(AuctionMetadata[] memory auctionMetadata, bytes32 termAuctionId) private view returns(bool auctionExists) {
function _validateAuctionExistence(AuctionMetadata[] memory auctionMetadata, bytes32 termAuctionId) private pure returns(bool auctionExists) {
// Check if the termAuctionId exists in the metadata
bool auctionExists;
for (uint256 i = 0; i < auctionMetadata.length; i++) {
if (auctionMetadata[i].termAuctionId == termAuctionId) {
auctionExists = true;
Expand Down

0 comments on commit 1339629

Please sign in to comment.