Tribute Minion
TributeMinion is a helper contract for making tribute proposals
- Provides contract to approve ERC-20 transfers
- Provides simple function/interface to make single proposal type
Details
There is a TributeMinion
contract deployed to each supported network.
Rinkeby
- TributeMinion:
0x34f1F0585A4a8ca62e9573940f77aD25FbdED860
Kovan
- TributeMinion:
0xcC3fE4c9F976167db373DEe88EB9b0E1Dc834c6B
Create Tribute Proposal
- Make a
submitTributeProposal
function call to the TributeMinion contract
function submitTributeProposal( Baal baal, address token, uint256 amount, uint256 shares, uint256 loot, uint32 expiration, string memory details)
msg.sender
is member tributing/requesting shares/lootbaal
is the DAO we are tributing tootoken
- ERC-20tokenAddress
amount
of tribute,shares
,loot
in Weiexpiration
is epoch time, same as in baalsubmitProposal
details
- proposal details schema we use
TributeMinion
contract encodes ERC-20 token transfers and makes the proposal against the baal contract- Subgraph catches the normal
submitProposal
event to create proposal entity - TributeMinion emits additional event that we catch and add the following fields to the proposal entity:
tributeOffered
tributeToken
tributeTokenSymbol
tributeTokenDecimals
tributeMinionRecipient