XDAO Platform
Searchโ€ฆ
๐Ÿ”น
Any Custom DeFi
Interact with any DeFi on behalf of your DAO

Module

XDAO platform already integrated TOP DeFis into its dApp. However, if you are going to use the protocol that is not listed in XDAO you can simply put some data in "Any custom DeFi" module. Here is step-by-step guide.
Please, be careful and stricltly follow the instructions! Otherwise you won't be able to activate your vote!
There are 4 field you should fill in:
    Address (the addres of the contract you're interaัting with)
    Data(bytes data)
    Value(the amount of BNB we must provide with the transaction)
    Comment(any comment that will be displayed for other members)

Address

Firstly, go to the dApp page you want to interact with and get the function you're going to call. You can use your own wallet or create new wallet for this. You won't spent your money so far, but will get necessary data to execute our module.
Function Swap we want to call
Click confirm
You will be redirected to Metamask confirmation
Copy address (in our case it is Pancake Router) and add it to "address" field
Address added

Data

There is only one a little bit tricky thing you will do. You need replace your own address from HEX DATA with your DAO address and then copy new HEX DATA into "Data" field.
Copy paste the HEX DATA in txt and replace your wallet address with your DAO address.
For example, you have the following bytecode (your personal wallet is highlighted in bold):
0x7ff36ab50000000000000000000000000000000000000000000000131b2e0685a97dec1d0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000ff7118c28ba102782daea509a51f40bbfe5fa6410000000000000000000000000000000000000000000000000000000060fb119e0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ae13d989dac2f0debff460ac112a837c89baa7cd00000000000000000000000078867bbeef44f2326bf8ddd1941a4439382ef2a7
if your DAO address is 0x834C859F7cA7CEEfe9122FD27CC28bbACcaae62D you will have:
0x7ff36ab50000000000000000000000000000000000000000000000131b2e0685a97dec1d0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000834C859F7cA7CEEfe9122FD27CC28bbACcaae62D0000000000000000000000000000000000000000000000000000000060fb119e0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ae13d989dac2f0debff460ac112a837c89baa7cd00000000000000000000000078867bbeef44f2326bf8ddd1941a4439382ef2a7
Notice that DAO address should be passed without 0x
Data added

Value

The "value" means the amount of BNB you need for this transaction. Moving back to our first Metamask screenshot you can see the value 1. Provide this value in the field "Value"
Check transaction for a value

Comment

"Comment" is optional field that will help your team to recognize what is this voting for.
Click "Create Voting" and go to Voting section:
We succesfully created Voting with Any Custom DeFi!
Last modified 10d ago