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

fix: remove duplicated errors #148

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}
}