Skip to content

Commit

Permalink
Merge pull request #7 from vesperfi/revenue-splitter
Browse files Browse the repository at this point in the history
Updated revenue splitter
  • Loading branch information
virendrapatidar authored Dec 5, 2021
2 parents c5b2e6b + 0d8c95e commit ceb4986
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 126 deletions.
6 changes: 3 additions & 3 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@
]
},
"revenueConfig": {
"address": "0xAdB5ef0CA9029b340bCCDEf005aef442C7F91C96",
"buybackAddress": "0x9bcdf1130b20856f86267074de136c5902e314fe",
"payeeCount": 2,
"parties": ["0xbA4cFE5741b357FA371b506e5db0774aBFeCf8Fc"],
"address": "0x80d426D65D926dF121dc58C18D043B73e998CE2b",
"payeeCount": 3,
"parties": ["0x9BcDf1130b20856f86267074DE136c5902E314fe", "0xf4087b7AB24Bde9c445ddD0bc4DF257F81277214"],
"tokens": [
{
"address": "0x0C49066C0808Ee8c673553B7cbd99BCC9ABf113d",
Expand Down
244 changes: 121 additions & 123 deletions src/abi/splitRevenue.json
Original file line number Diff line number Diff line change
@@ -1,191 +1,189 @@
[
{
"inputs": [
{
"internalType": "address[]",
"name": "_payees",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "_share",
"type": "uint256[]"
}
{"internalType": "address[]", "name": "_payees", "type": "address[]"},
{"internalType": "uint256[]", "name": "_share", "type": "uint256[]"}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "payee",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "share",
"type": "uint256"
}
{"indexed": true, "internalType": "address", "name": "previousOwner", "type": "address"},
{"indexed": true, "internalType": "address", "name": "newOwner", "type": "address"}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{"indexed": true, "internalType": "address", "name": "payee", "type": "address"},
{"indexed": false, "internalType": "uint256", "name": "share", "type": "uint256"}
],
"name": "PayeeAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "payee",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "asset",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokens",
"type": "uint256"
}
{"indexed": true, "internalType": "address", "name": "payee", "type": "address"},
{"indexed": true, "internalType": "address", "name": "asset", "type": "address"},
{"indexed": false, "internalType": "uint256", "name": "tokens", "type": "uint256"}
],
"name": "PaymentReleased",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
{"indexed": true, "internalType": "address", "name": "vToken", "type": "address"},
{"indexed": true, "internalType": "address", "name": "oracle", "type": "address"}
],
"name": "payees",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
"name": "VTokenAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{"indexed": true, "internalType": "address", "name": "vToken", "type": "address"},
{"indexed": true, "internalType": "address", "name": "oracle", "type": "address"}
],
"name": "VTokenRemoved",
"type": "event"
},
{
"inputs": [],
"name": "HIGH",
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "LOW",
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_payee",
"type": "address"
},
{
"internalType": "address",
"name": "_asset",
"type": "address"
}
{"internalType": "address", "name": "_vToken", "type": "address"},
{"internalType": "address", "name": "_oracle", "type": "address"}
],
"name": "release",
"name": "addVToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "isAutoTopUpEnabled",
"outputs": [{"internalType": "bool", "name": "", "type": "bool"}],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isTopUpEnabled",
"outputs": [{"internalType": "bool", "name": "", "type": "bool"}],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{"internalType": "address", "name": "", "type": "address"}],
"name": "oracles",
"outputs": [{"internalType": "address", "name": "", "type": "address"}],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [{"internalType": "address", "name": "", "type": "address"}],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
"name": "payees",
"outputs": [{"internalType": "address", "name": "", "type": "address"}],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "_payee",
"type": "address"
}
{"internalType": "address", "name": "_payee", "type": "address"},
{"internalType": "address", "name": "_asset", "type": "address"}
],
"name": "release",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{"internalType": "address payable", "name": "_payee", "type": "address"}],
"name": "releaseEther",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
}
{"internalType": "address", "name": "", "type": "address"},
{"internalType": "address", "name": "", "type": "address"}
],
"name": "released",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"inputs": [{"internalType": "address", "name": "_vToken", "type": "address"}],
"name": "removeVToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{"inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function"},
{
"inputs": [{"internalType": "address", "name": "", "type": "address"}],
"name": "share",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
"stateMutability": "view",
"type": "function"
},
{"inputs": [], "name": "toggleAutoTopUp", "outputs": [], "stateMutability": "nonpayable", "type": "function"},
{"inputs": [], "name": "toggleTopUpStatus", "outputs": [], "stateMutability": "nonpayable", "type": "function"},
{"inputs": [], "name": "topUp", "outputs": [], "stateMutability": "nonpayable", "type": "function"},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"inputs": [{"internalType": "address", "name": "", "type": "address"}],
"name": "totalReleased",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalShare",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
"stateMutability": "view",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
"inputs": [{"internalType": "address", "name": "newOwner", "type": "address"}],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
"name": "vTokens",
"outputs": [{"internalType": "address", "name": "", "type": "address"}],
"stateMutability": "view",
"type": "function"
},
{"stateMutability": "payable", "type": "receive"}
]

0 comments on commit ceb4986

Please sign in to comment.