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
In submitHKGProposal() the parameter requestValue is an amount in HKG. According to the whitepaper, it should be "possible to request up to 20% of the HKG funds every 2 weeks".
The corresponding check in the code should compare requestValue with the HKG balance of the contract (e.g. using getHKGOwned()).
However, on lines 392 and 397requestValue is checked against preferedQtySold which is a value in DST tokens.
If preferedQtySold is higher than the HKG balance this allows to submit a proposal for a higher amount, up to the full HKG balance of the contract.
The text was updated successfully, but these errors were encountered:
In
submitHKGProposal()
the parameterrequestValue
is an amount in HKG. According to the whitepaper, it should be "possible to request up to 20% of the HKG funds every 2 weeks".The corresponding check in the code should compare
requestValue
with the HKG balance of the contract (e.g. usinggetHKGOwned()
).However, on lines 392 and 397
requestValue
is checked againstpreferedQtySold
which is a value in DST tokens.If
preferedQtySold
is higher than the HKG balance this allows to submit a proposal for a higher amount, up to the full HKG balance of the contract.The text was updated successfully, but these errors were encountered: