UNPKG

@malda-protocol/protocol-config

Version:

Centralized contract addresses, constants, and token configurations for Malda Protocol

160 lines (159 loc) 5.91 kB
export const JUMP_RATE_MODEL_ABI = [ { inputs: [ { internalType: 'uint256', name: 'blocksPerYear_', type: 'uint256' }, { internalType: 'uint256', name: 'baseRatePerYear', type: 'uint256' }, { internalType: 'uint256', name: 'multiplierPerYear', type: 'uint256' }, { internalType: 'uint256', name: 'jumpMultiplierPerYear', type: 'uint256' }, { internalType: 'uint256', name: 'kink_', type: 'uint256' }, { internalType: 'address', name: 'owner_', type: 'address' }, { internalType: 'string', name: 'name_', type: 'string' }, ], stateMutability: 'nonpayable', type: 'constructor', }, { inputs: [], name: 'JumpRateModelV4_MultiplierNotValid', type: 'error' }, { inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], name: 'OwnableInvalidOwner', type: 'error' }, { inputs: [{ internalType: 'address', name: 'account', type: 'address' }], name: 'OwnableUnauthorizedAccount', type: 'error', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'uint256', name: 'baseRatePerBlock', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'multiplierPerBlock', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'jumpMultiplierPerBlock', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'kink', type: 'uint256' }, ], name: 'NewInterestParams', 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: 'baseRatePerBlock', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'blocksPerYear', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'cash', type: 'uint256' }, { internalType: 'uint256', name: 'borrows', type: 'uint256' }, { internalType: 'uint256', name: 'reserves', type: 'uint256' }, ], name: 'getBorrowRate', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'cash', type: 'uint256' }, { internalType: 'uint256', name: 'borrows', type: 'uint256' }, { internalType: 'uint256', name: 'reserves', type: 'uint256' }, { internalType: 'uint256', name: 'reserveFactorMantissa', type: 'uint256' }, ], name: 'getSupplyRate', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'isInterestRateModel', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'pure', type: 'function', }, { inputs: [], name: 'jumpMultiplierPerBlock', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'kink', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'multiplierPerBlock', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'name', outputs: [{ internalType: 'string', name: '', type: 'string' }], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'owner', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', 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: [{ internalType: 'uint256', name: 'blocksPerYear_', type: 'uint256' }], name: 'updateBlocksPerYear', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'baseRatePerYear', type: 'uint256' }, { internalType: 'uint256', name: 'multiplierPerYear', type: 'uint256' }, { internalType: 'uint256', name: 'jumpMultiplierPerYear', type: 'uint256' }, { internalType: 'uint256', name: 'kink_', type: 'uint256' }, ], name: 'updateJumpRateModel', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'cash', type: 'uint256' }, { internalType: 'uint256', name: 'borrows', type: 'uint256' }, { internalType: 'uint256', name: 'reserves', type: 'uint256' }, ], name: 'utilizationRate', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'pure', type: 'function', }, ];