Author: filipv
Date: 2023-04-15
Thesis
Migrate all of the JuiceboxDAO multisig's v1 JBX to v3 JBX.
Why
To consolidate the DAO's JBX for simpler operations.
Specification
- Call v1
OperatorStore.setOperator(...)
with an_operator
ofJBV3Token
, a_domain
of1
, and a_permissionIndexes
of[12]
(Transfer
). - Call v2
JBOperatorStore.setOperator
with anoperator
ofJBV3Token
, adomain
of1
, and apermissionIndexes
of12
(Transfer
). - Call
Tickets.approve(...)
on v1 JBX with aspender
ofJBV3Token
and the maximum amount (the maximumUINT256
,2**256 - 1
). - Call
JBV3Token.migrate()
.
Rationale
- Allows the
JBV3Token
contract to migrate the DAO's v1 JBX. - Allows the
JBV3Token
contract to migrate the DAO's v2 JBX. - Allows the
JBV3Token
contract to migrate the DAO's v1Tickets
ERC-20 JBX. - Migrates the tokens approved in steps 1-3.
Risks
Although the v3 migration contracts were tested and audited, there are always risks of bugs and vulnerabilities when interacting with smart contracts.
Timeline
To be executed within 90 days of this proposal's Snapshot ratification.