Skip to content

exchangeLight.sol questions #157

@gundas

Description

@gundas

Hello,

I've started looking at exchangeLight.sol. I see that in receiveToken(...) there is a check that the Ether balance of the receiver is less than 0.2 ETC. What is the point? If I really wanted, I could create automated scripts which would empty Ether from the account every time before transferring the COR to the exchange?

Another thing:

        uint256 _amount = amount;
        if ( _max > _amount ) {
            _amount = _max;
        }

will always make sure that _amount is more or equals to amount (and _max).
Then this will result in negative value:

return ( true, safeSub(amount, _amount) );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions