This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add integration with SINGLE LYF positions
- Loading branch information
Benicio Takahashi
committed
Jun 24, 2022
1 parent
a2a8838
commit f173380
Showing
25 changed files
with
9,954 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,269 @@ | ||
[ | ||
{ | ||
"inputs": [{ "internalType": "contract ICraftsman", "name": "_craftsman", "type": "address" }], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "contract IRewarder", "name": "rewarder", "type": "address" } | ||
], | ||
"name": "AddRewarder", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, | ||
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } | ||
], | ||
"name": "Deposit", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, | ||
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } | ||
], | ||
"name": "EmergencyWithdraw", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, | ||
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } | ||
], | ||
"name": "OwnershipTransferred", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [{ "indexed": false, "internalType": "uint256", "name": "pid", "type": "uint256" }], | ||
"name": "Panic", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], | ||
"name": "Paused", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "contract IRewarder", "name": "rewarder", "type": "address" } | ||
], | ||
"name": "RemoveRewarder", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "address", "name": "lpToken", "type": "address" }, | ||
{ "indexed": false, "internalType": "contract IRewarder[]", "name": "rewarders", "type": "address[]" }, | ||
{ "indexed": false, "internalType": "bool", "name": "withUpdate", "type": "bool" } | ||
], | ||
"name": "SetPid", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], | ||
"name": "Unpaused", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, | ||
{ "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } | ||
], | ||
"name": "Withdraw", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "_pid", "type": "uint256" }, | ||
{ "internalType": "contract IRewarder[]", "name": "_rewarders", "type": "address[]" }, | ||
{ "internalType": "bool", "name": "_withUpdate", "type": "bool" } | ||
], | ||
"name": "add", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "_pid", "type": "uint256" }, | ||
{ "internalType": "contract IRewarder", "name": "_rewarder", "type": "address" } | ||
], | ||
"name": "addRewarder", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "craftsman", | ||
"outputs": [{ "internalType": "contract ICraftsman", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "_pid", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "_amount", "type": "uint256" } | ||
], | ||
"name": "deposit", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "_pid", "type": "uint256" }], | ||
"name": "emergencyWithdraw", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "_pid", "type": "uint256" }, | ||
{ "internalType": "contract IRewarder", "name": "_rewarder", "type": "address" } | ||
], | ||
"name": "isRewarderInPool", | ||
"outputs": [ | ||
{ "internalType": "bool", "name": "", "type": "bool" }, | ||
{ "internalType": "uint256", "name": "", "type": "uint256" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "massUpdatePools", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [], | ||
"name": "owner", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "_pid", "type": "uint256" }], | ||
"name": "panic", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "paused", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "_pid", "type": "uint256" }, | ||
{ "internalType": "address", "name": "_user", "type": "address" } | ||
], | ||
"name": "pendingTokens", | ||
"outputs": [ | ||
{ "internalType": "address[]", "name": "", "type": "address[]" }, | ||
{ "internalType": "uint256[]", "name": "", "type": "uint256[]" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "_pid", "type": "uint256" }, | ||
{ "internalType": "address", "name": "_user", "type": "address" } | ||
], | ||
"name": "pendingVVS", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"name": "poolIds", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"name": "poolInfo", | ||
"outputs": [ | ||
{ "internalType": "contract IERC20", "name": "lpToken", "type": "address" }, | ||
{ "internalType": "uint256", "name": "accVVSPerShare", "type": "uint256" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "_pid", "type": "uint256" }], | ||
"name": "poolRewarders", | ||
"outputs": [{ "internalType": "contract IRewarder[]", "name": "", "type": "address[]" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "_pid", "type": "uint256" }, | ||
{ "internalType": "contract IRewarder", "name": "_rewarder", "type": "address" } | ||
], | ||
"name": "removeRewarder", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], | ||
"name": "transferOwnership", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "_pid", "type": "uint256" }], | ||
"name": "updatePool", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "", "type": "uint256" }, | ||
{ "internalType": "address", "name": "", "type": "address" } | ||
], | ||
"name": "userInfo", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "amount", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "rewardDebt", "type": "uint256" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "_pid", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "_amount", "type": "uint256" } | ||
], | ||
"name": "withdraw", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
Oops, something went wrong.