DXD Action Relayers 4 DXdao (Burn, Sell and Pay)

Hola a todos, I wrote what I call DXD action relayers smart contracts.
This smart contracts are extremely simple and they can be used by DXdao to execute functions in the DXD contract with just sending DXD or ETH to them, important this to know is that our current governance system requires the creation of what a “proposal scheme” to interact with smart contracts functions form our organization, this process is filled with bureaucracy and it is long, I wont get into details about that… BUT now we can use the DXD burn, sell and pay from DXdao without the need of creating a new proposal scheme for it, these action relayers use the contributions rewards scheme to pay, burn and sell DXD tokens from DXdao.

This contracts has been tested on Kovan with the DXD kovan contract and the Kovan Dev Multisig as DXdao.

All the contracts have their source code verified, the links are shared on each implementation.

DXD Burn Relayer

The DXDBurnRelayer is a smart contract with an executeBurn function, when this function is called it will burn all the DXD tokens received in this contract, this allows DXdao to burn tokens directly by sending them to the DXDBurnRelayer instead of calling the burn function.

mainnet: https://etherscan.io/address/0x95f8231621c47e64bf7037d399cb4bc3e34635db#code
kovan: https://kovan.etherscan.io/address/0x77c6dad9801827f688e26d739fa390445a2ab408#code

DXD Sell Relayer

The DXDSellRelayer is a smart contract with an executeSell function, when this function is called it will sell all the DXD tokens received in this contract, this allows DXdao to sell DXD tokens directly by sending them to the DXDSellRelayer instead of calling the sell function.

mainnet: https://etherscan.io/address/0xdee210b9b3f4e1bd3f64944c277d4dcbe4e5c095#code
kovan: https://kovan.etherscan.io/address/0x6121d6d76363388f66b6a036c1925057e189e0bb#code

DXD Pay Relayer

The DXDPayRelayer is a smart contract with an executePay function, when this function is called it will pay all the ETH received in this contract to the DXD contract, this allows DXdao to pay ETH directly by sending them to the DXDPayRelayer instead of calling the pay function.

mainnet: https://kovan.etherscan.io/address/0x28c0db19d2ab55d1329991f9019a697880db7ca7#code
kovan: https://etherscan.io/address/0xa96e6c81a5fd03c95ae83aea810774a5c02e0576#code

How to use them

ETH or DXD can be sent directly from proposals created in the Founding and Voting Power Scheme, the beneficiary address depends on the action we want to execute, if you want to propose a burn you will use the DXDBurnRelayer as beneficiary address and send the amount DXD you want to burn there, if you want to sell DXD you will use the DXDSellRelayer as beneficiary address and send the DXD tokens you want to sell, the ETH received form the sell will be sent directly to the DXdao, and at last if yuo want to execute a pay you will use the DXDPayRelayer as beneficiary and send the amount of ETH you want to pay to DXtrust there.

5 Likes