Skip to content

Commit

Permalink
fix: remove duplicated errors (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra authored Sep 21, 2023
1 parent b5df36c commit f559d58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 124 deletions.
120 changes: 0 additions & 120 deletions src/dependencies/Errors.sol

This file was deleted.

4 changes: 2 additions & 2 deletions src/dependencies/PercentageMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// From commit https://github.com/aave/protocol-v2/commit/92a731ec2c536734924f5a55d3e6db0385b0c824
pragma solidity >=0.6.12;

import {Errors} from '../dependencies/Errors.sol';
import {Errors} from 'aave-address-book/AaveV2.sol';

/**
* @title PercentageMath library
Expand Down Expand Up @@ -52,4 +52,4 @@ library PercentageMath {

return (value * PERCENTAGE_FACTOR + halfPercentage) / percentage;
}
}
}
4 changes: 2 additions & 2 deletions src/dependencies/WadRayMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// From commit https://github.com/aave/protocol-v2/commit/92a731ec2c536734924f5a55d3e6db0385b0c824
pragma solidity >=0.6.12;

import {Errors} from '../dependencies/Errors.sol';
import {Errors} from 'aave-address-book/AaveV2.sol';

/**
* @title WadRayMath library
Expand Down Expand Up @@ -133,4 +133,4 @@ library WadRayMath {
require(result / WAD_RAY_RATIO == a, Errors.MATH_MULTIPLICATION_OVERFLOW);
return result;
}
}
}

0 comments on commit f559d58

Please sign in to comment.