News for hackers. Stuff that matters.
Re:SafeDollar ‘stablecoin’ drops to $0 following DeFi exploi... by unholiness on Monday June 28, 2021 @04:05PM (#27667188)
But it's so much worse than that, right? Bugs in a smart contract are immutable. Those are just the terms everyone agreed to. There's simply no path to deploying a fix that every good actor agrees is beneficial.
Re:SafeDollar ‘stablecoin’ drops to $0 following DeFi exploi... by ekir on Monday June 28, 2021 @04:33PM (#27667667)
It's fairly common to deploy a proxy contract, which allows for a sort of updating. Basically you deploy a new contract and have the proxy point to that new contract instead of the old one. There are definitely some limitations and it's not fully standardized yet. There's a tentative standard here https://github.com/ethereum/EIPs/issues/1538 and OpenZeppelin also has their own implementation.

Although neither of these things will actually help if your contract gets exploited before you can push a fix.

Re:SafeDollar ‘stablecoin’ drops to $0 following DeFi exploi... by acjohnson55 on Monday June 28, 2021 @06:17PM (#27668973)
The problem there is that it allows people with deploy privileges to unilaterally change the rules. So you lose "code is law". Hypothetically, you want to custody of assets in an immutable contract with the minimal amount of privileges, and use proxy contracts for higher level on-chain functionality. But it's not so clear to me that it's possible to achieve a perfect factoring, in general.
Re:SafeDollar ‘stablecoin’ drops to $0 following DeFi exploi... by xur17 on Monday June 28, 2021 @06:36PM (#27669179)
Typically folks require a governance vote (so multiple parties) + a timelocked contract, and then after some system age / volume they burn the option.
Re:SafeDollar ‘stablecoin’ drops to $0 following DeFi exploi... by gumby on Monday June 28, 2021 @06:45PM (#27669273)
Doesn't a proxy contract defeat the whole purpose of algorithmically enforced contracts?
Re:SafeDollar ‘stablecoin’ drops to $0 following DeFi exploi... by cmelbye on Monday June 28, 2021 @07:06PM (#27669479)
I don't think it's realistic to think that human judgment can leave the picture after the first deploy. New systems are fragile, requirements change, and mistakes happen. A certain level of trust is required in the founders of a project. And generally, they have long-term incentives that are aligned with your own.
Re:SafeDollar ‘stablecoin’ drops to $0 following DeFi exploi... by elefanten on Monday June 28, 2021 @07:28PM (#27669680)
So it implies the crypto maximalist takes on true trustlessness are not proving workable. At least in practice with lots of real users.
Re:SafeDollar ‘stablecoin’ drops to $0 following DeFi exploi... by PretzelPirate on Monday June 28, 2021 @07:50PM (#27669833)
The systems can be trustless and upgradable.

As we get proven/tested/formally verified code that implements governance protocols we can use that code to build system of allowing upgrades while allowing those who disagree to exit the system.

For example, one of the ZKRollup chains has a mechanism for upgrading that requires a small number of approvers for the “break glass” scenario. When an upgrade is approved, anyone can exit the network before the upgrade takes affect and move to a system with rules they support.

Governance models will evolve as we figure out what works and what doesn’t. Some people may be ok with a super majority being able to revert the state of a contract in response to a bug while others will want immutability at all costs.

Blockchain/cryptocurrency is about each participant deciding how much trust they are ok with, and having an open ecosystem where assets can be moved to systems that people want to use.

Re:SafeDollar ‘stablecoin’ drops to $0 following DeFi exploi... by cmelbye on Monday June 28, 2021 @08:54PM (#27670336)
Do you have any examples of these takes? The concept of "true trustlessness" is obviously lacking in nuance and probably impossible. Nothing in the world can exist without some form of trust. However, we can certainly use smart contracts to decentralize trust and limit risk exposure.
Re:SafeDollar ‘stablecoin’ drops to $0 following DeFi exploi... by pjerem on Monday June 28, 2021 @04:12PM (#27667317)
I guess technically you can deploy a new contract that reverses the previous contract outcomes then replays the « fixed » terms. Good luck to find a common agreement though. And so much more possibilities for new bugs.