Earlier quoted context omitted.
What you are saying is totally debunked by the sheer number of Defi hacks,rug pulls and exoloits the previous year resulting in billions of lost money. That defi has no counterparty risk is probably one of thr all time wrong sentences on HN.
> That defi has no counterparty risk is probably one of thr all time wrong sentences on HN Which is why I didn't say it. One of the nice features of smart contract platforms is that any two people can quickly set up a transaction where they swap a basket of assets for another basket of assets atomically and without counterparty risk. To get similar guarantees in tradfi requires either an underwriter (that we assume c…
Of course there is counterparty risk - the contract writer could be adversarial. People dont always audit smart contracts (or may not realistically be able to, especially if the contract writer is attempting to obfuscate a subtle bug they can use for their own advantage). Thats the point of the above comment.
If the traditional world, courts would interpret such a contract as not valid. In the DeFi world, code is law - at least until law enforcement and regulatory agencies catch up to it.