deploy bsc && update feeRateDIP3

This commit is contained in:
owen05
2022-03-11 08:56:08 +08:00
parent a3d788f87e
commit 4d0626f7a5
4 changed files with 25 additions and 4 deletions

View File

@@ -165,7 +165,11 @@ contract FeeRateDIP3Impl is InitializableOwnable {
}else {
isHaveCap = true;
uint256 userStake = ICrowdPooling(pool).getShares(user);
curQuota = int(uint256(curQuota).sub(userStake));
if(uint256(curQuota) >= userStake) {
curQuota = int(uint256(curQuota).sub(userStake));
}else {
curQuota = 0;
}
}
address feeAddr = cpPoolInfo.feeAddr;