Funds accidentally sent to an Aragon app address
If you accidentally send tokens to the address of an app installed in an Aragon organization, you can recover the tokens and send them to the organization's Vault by following these steps:
- Install the aragonCLI which is a command line interface for interacting with Aragon organizations.
aragon ipfsin your Terminal in order to provide aragonCLI with a way to access data (e.g. ABIs) for Aragon organizations.
- Set a private key for the aragonCLI to use, then send some ether to the address for this private key to pay for gas.
- Send the following transaction from the aragonCLI, replacing each "address" with the corresponding address relevant to your stuck transaction:
dao exec OrganizationAddress AppAddress recoverToVault TokenContractAddress --environment aragon:mainnet
Where the OrganizationAddress is the address of the organization housing the stuck funds, the AppAddress is the address of the app you sent the stuck funds to, and the TokenContractAddress is the address of the token contract for the token you sent.
dao exec 0x8A83D4bCE45b4C4F751f76cf565953D1E4A3BF0a 0x98516C82Bda8B3dE6E2670B718848949Ae6a4643 recoverToVault 0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359 --environment aragon:mainnet
Thanks to Chris Hobcroft for documenting these steps in this GitHub comment.