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
submitTributeProposalfunction call to the TributeMinion contract
function submitTributeProposal( Baal baal, address token, uint256 amount, uint256 shares, uint256 loot, uint32 expiration, string memory details)msg.senderis member tributing/requesting shares/lootbaalis the DAO we are tributing tootoken- ERC-20tokenAddressamountof tribute,shares,lootin Weiexpirationis epoch time, same as in baalsubmitProposaldetails- proposal details schema we use
TributeMinioncontract encodes ERC-20 token transfers and makes the proposal against the baal contract- Subgraph catches the normal
submitProposalevent to create proposal entity - TributeMinion emits additional event that we catch and add the following fields to the proposal entity:
tributeOfferedtributeTokentributeTokenSymboltributeTokenDecimalstributeMinionRecipient