You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Beneficiary: 0x88cBcd44a23Dc16dF47f144f6f6E111DB7433b71 Submission hash (on-chain): 0x8b8c0c3867c4b84ce17ad0ee1ee4beaea1bbad885ae1eaf030db721d5dc5b9ba Severity: medium
Description: Description
As per the DAOSIS documentation, 55% of the token supply should be allocated to the IDO. However, the implementation in the MasterFastIDO and MasterNormalIDO contracts sends only 45% of the token supply to the IDO. This discrepancy deviates from the intended goal outlined in the protocol's documentation.
Impact
This issue misaligns with the protocol's stated objectives, leading to incorrect token distribution and potential loss of trust from the community and investors.
Instance
Present in the constructor of both the contract:
if(!feesInToken){
@>adminAmount=(tokenParams.tokenSupply*55)/100;
@>idoAmount=tokenParams.tokenSupply-adminAmount;(boolsuccess,)=feeReceiver.call{value: deploymentFee}("");require(success,"Fee transfer failed!");}else{
@>adminAmount=(tokenParams.tokenSupply*54)/100;feeAmount=(tokenParams.tokenSupply*1)/100;
@>idoAmount=tokenParams.tokenSupply-(adminAmount+feeAmount);}token.transfer(admin,adminAmount*10**uint256(tokenParams.tokenDecimal));
Fix
Add this in the contructor of both the contract:
if(!feesInToken){++idoAmount=(tokenParams.tokenSupply*55)/100;++adminAmount=tokenParams.tokenSupply-idoAmount;--adminAmount=(tokenParams.tokenSupply*55)/100;--idoAmount=tokenParams.tokenSupply-adminAmount;(boolsuccess,)=feeReceiver.call{value: deploymentFee}("");require(success,"Fee transfer failed!");}else{++idoAmount=(tokenParams.tokenSupply*55)/100;feeAmount=(tokenParams.tokenSupply*1)/100;++adminAmount=tokenParams.tokenSupply-(idoAmount+feeAmount);--adminAmount=(tokenParams.tokenSupply*54)/100;feeAmount=(tokenParams.tokenSupply*1)/100;--idoAmount=tokenParams.tokenSupply-(adminAmount+feeAmount);}token.transfer(admin,adminAmount*10**uint256(tokenParams.tokenDecimal));
The text was updated successfully, but these errors were encountered:
Yes, you are correct, but this is not a vulnerability. We are sending the supply to the admin, who can transfer remaining tokens to the contract at any time. However, we can address this and implement a fix.
Github username: --
Twitter username: --
HATS Profile: HATS Profile
Beneficiary: 0x88cBcd44a23Dc16dF47f144f6f6E111DB7433b71
Submission hash (on-chain): 0x8b8c0c3867c4b84ce17ad0ee1ee4beaea1bbad885ae1eaf030db721d5dc5b9ba
Severity: medium
Description:
Description
As per the DAOSIS documentation, 55% of the token supply should be allocated to the IDO. However, the implementation in the
MasterFastIDO
andMasterNormalIDO
contracts sends only 45% of the token supply to the IDO. This discrepancy deviates from the intended goal outlined in the protocol's documentation.Impact
This issue misaligns with the protocol's stated objectives, leading to incorrect token distribution and potential loss of trust from the community and investors.
Instance
Present in the
constructor
of both the contract:Fix
Add this in the
contructor
of both the contract:The text was updated successfully, but these errors were encountered: