Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Hot fix#535

Merged
Paladz merged 3 commits intomasterfrom
hot_fix
May 23, 2020
Merged

Hot fix#535
Paladz merged 3 commits intomasterfrom
hot_fix

Conversation

@Paladz
Copy link
Contributor

@Paladz Paladz commented May 22, 2020

No description provided.

// define requestedAmount: Integer = valueAmount * ratioNumerator / ratioDenominator
// define requestedAmount: Integer = requestedAmount * 999 / 1000
// verify requestedAmount > 0
// verify requestedAmount >= 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个地方会有点危险,等于0就表示用户什么都没支付就能解锁合约的钱了,就算收取了手续费也是没有合约验证的。并且支持等于0就表示支持ouput等于0了,validate估计也过不了。建议在撮合层做一下限制和判断

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么会不验证合约?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

千一的手续费收取是没有对应的合约验证语句

@Paladz Paladz merged commit c105e64 into master May 23, 2020
@Paladz Paladz deleted the hot_fix branch May 23, 2020 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants