Skip to content

Commit

Permalink
Merge pull request #91 from VenusProtocol/feat/busd-liquidator
Browse files Browse the repository at this point in the history
[VEN-2030]: add BUSD liquidator VIP simulation
  • Loading branch information
kkirka authored Oct 24, 2023
2 parents e1477ec + a1d7606 commit d30d7cc
Show file tree
Hide file tree
Showing 7 changed files with 5,014 additions and 9 deletions.
315 changes: 315 additions & 0 deletions simulations/vip-191/abi/BUSDLiquidator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,315 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "comptroller_",
"type": "address"
},
{
"internalType": "address",
"name": "vBUSD_",
"type": "address"
},
{
"internalType": "address",
"name": "treasury_",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "ApproveFailed",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "maxLiquidatorShareMantissa",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "liquidatorShareMantissa_",
"type": "uint256"
}
],
"name": "LiquidatorShareTooHigh",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "liquidatorShareMantissa_",
"type": "uint256"
}
],
"name": "LiquidatorShareTooLow",
"type": "error"
},
{
"inputs": [],
"name": "UnexpectedZeroAddress",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldLiquidatorShareMantissa",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newLiquidatorShareMantissa",
"type": "uint256"
}
],
"name": "NewLiquidatorShare",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferStarted",
"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"
},
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "comptroller",
"outputs": [
{
"internalType": "contract IComptroller",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "liquidatorShareMantissa_",
"type": "uint256"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "borrower",
"type": "address"
},
{
"internalType": "uint256",
"name": "repayAmount",
"type": "uint256"
},
{
"internalType": "contract IVToken",
"name": "vTokenCollateral",
"type": "address"
}
],
"name": "liquidateBorrow",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "borrower",
"type": "address"
},
{
"internalType": "contract IVToken",
"name": "vTokenCollateral",
"type": "address"
}
],
"name": "liquidateEntireBorrow",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "liquidatorShareMantissa",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pendingOwner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "liquidatorShareMantissa_",
"type": "uint256"
}
],
"name": "setLiquidatorShare",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20Upgradeable",
"name": "token",
"type": "address"
}
],
"name": "sweepToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "treasury",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "vBUSD",
"outputs": [
{
"internalType": "contract IVBep20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading

0 comments on commit d30d7cc

Please sign in to comment.