OpenST / mosaic-contracts

Mosaic-0: Gateways and anchors on top of Ethereum to scale DApps
https://discuss.openst.org/c/mosaic
MIT License
114 stars 31 forks source link

A zero amount should not branch #695

Closed schemar closed 5 years ago

schemar commented 5 years ago

In an effort to simplify code and verifiability, we aim to remove branching statements that are not required. Remove the branching where indicated below and make sure that the utility token allows a call to increase supply with a zero value.

https://github.com/OpenSTFoundation/mosaic-contracts/blob/fa436b06cacf3ea84d72550b7398f94220476648/contracts/gateway/EIP20CoGateway.sol#L1139