Skip to content

Commit

Permalink
Merge pull request #1019 from pingu1/master
Browse files Browse the repository at this point in the history
Impermax Pools
  • Loading branch information
vrtnd authored Oct 10, 2023
2 parents fe5ae71 + 7c0f208 commit e83b64d
Show file tree
Hide file tree
Showing 2 changed files with 1,132 additions and 0 deletions.
193 changes: 193 additions & 0 deletions src/adaptors/impermax-finance/abi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
module.exports = {
allLendingPools: {
constant: true,
inputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
name: 'allLendingPools',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
allLendingPoolsLength: {
constant: true,
inputs: [],
name: 'allLendingPoolsLength',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
getLendingPool: {
constant: true,
inputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
name: 'getLendingPool',
outputs: [
{
internalType: 'bool',
name: 'initialized',
type: 'bool',
},
{
internalType: 'uint24',
name: 'lendingPoolId',
type: 'uint24',
},
{
internalType: 'address',
name: 'collateral',
type: 'address',
},
{
internalType: 'address',
name: 'borrowable0',
type: 'address',
},
{
internalType: 'address',
name: 'borrowable1',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
underlying: {
constant: true,
inputs: [],
name: 'underlying',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
totalBorrows: {
constant: true,
inputs: [],
name: 'totalBorrows',
outputs: [{ internalType: 'uint112', name: '', type: 'uint112' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
underlying: {
constant: true,
inputs: [],
name: 'underlying',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
symbol: {
inputs: [],
name: 'symbol',
outputs: [{ internalType: 'string', name: '', type: 'string' }],
stateMutability: 'view',
type: 'function',
},
getReserves: {
constant: true,
inputs: [],
name: 'getReserves',
outputs: [
{ internalType: 'uint112', name: 'reserve0', type: 'uint112' },
{ internalType: 'uint112', name: 'reserve1', type: 'uint112' },
{ internalType: 'uint32', name: 'blockTimestampLast', type: 'uint32' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
token0: {
constant: true,
inputs: [],
name: 'token0',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
token1: {
constant: true,
inputs: [],
name: 'token1',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
decimals: {
constant: true,
inputs: [],
name: 'decimals',
outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
reserveFactor: {
constant: true,
inputs: [],
name: 'reserveFactor',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
borrowRate: {
constant: true,
inputs: [],
name: 'borrowRate',
outputs: [{ internalType: 'uint48', name: '', type: 'uint48' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
factory: {
inputs: [],
name: 'factory',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
totalSupply: {
constant: true,
inputs: [],
name: 'totalSupply',
outputs: [{ internalType:'uint256', name: '', 'type': 'uint256'}],
payable: false,
stateMutability:'view',
type: 'function'
},
};
Loading

0 comments on commit e83b64d

Please sign in to comment.