Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> to execute transactions, eg. to swap ETH for NFTs or ETH to WETH like in the OP.

It could apparently only swap from one kind of crypto-"currency" to other stuff.

> But yeah the ability to send the directly to the address is stupid.

Isn't the problem raher the ability to send the wrong "currency" to the address?

If it can only change from one kind to others, then the correct behaviour is obviously to accept only that kind, and reject any others. This is basically an online version of a physical currency-changing ATM, where you feed in dollars to get euros (or other currencies?) in stead. If you feed in euros or pounds or yen by mistake, the ATM should obviously spit it back out. This online version just swallowed the wrong currency. You don't have to know how ATMs actually work internally in order to determine that this is invalid behaviour not only on the user's part, but definitely on the ATM's too. If the ATM can only change from dollars to other currencies, then it should only accept dollars.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: