-
Notifications
You must be signed in to change notification settings - Fork 7
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
HP-25: C4 Audit Fixes, Dynamic Fee Changes #42
Conversation
contracts/hyphen/LiquidityPool.sol
Outdated
@@ -335,14 +345,14 @@ contract LiquidityPool is | |||
* @param initialGas Gas provided initially before any calculations began | |||
* @param tokenAddress Token address for which calculation needs to be done | |||
* @param amount Amount of token to be transfered before deducting the fee | |||
* @param tokenGasPrice Gas price in the token being transfered to be used to calculate gas fee | |||
* @param nativeTokenPriceInTransferredToken Price of native token in terms of the token being transferred (multiplied base div), used to calculate gas fee | |||
* @return [ amountToTransfer, lpFee, transferFeeAmount, gasFee ] | |||
*/ | |||
function getAmountToTransfer( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these changes in new method getAmountToTransferV2 and same for sendFundsToUserV2
expect((await ethers.provider.getBalance(owner.address)).gte(nativeBalance)).to.be.true; | ||
}); | ||
|
||
it("Should be able to withdraw liquidity", async function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a test case to verify if token manager was changed after contracts upgrades.
Liquidity Farming
Bug Fixes:
nft Info
can cause users'nft.unpaidRewards
to be permanently erased code-423n4/2022-03-biconomy-findings#135Liquidity Pool
Bug Fixes:
Features:
Liquidity Providers
Bugs Fixed
Token Manager
Features
excessStateTransferFeePerc
mappingPauser
Bugs Fixed
pauser
can brick the contracts code-423n4/2022-03-biconomy-findings#137Misc