mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
57 lines
1.1 KiB
TypeScript
57 lines
1.1 KiB
TypeScript
/* Generated by ts-generator ver. 0.0.8 */
|
|
/* tslint:disable */
|
|
|
|
import { Contract, Signer } from "ethers";
|
|
import { Provider } from "ethers/providers";
|
|
|
|
import { IFeeProvider } from "./IFeeProvider";
|
|
|
|
export class IFeeProviderFactory {
|
|
static connect(
|
|
address: string,
|
|
signerOrProvider: Signer | Provider
|
|
): IFeeProvider {
|
|
return new Contract(address, _abi, signerOrProvider) as IFeeProvider;
|
|
}
|
|
}
|
|
|
|
const _abi = [
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "_user",
|
|
type: "address"
|
|
},
|
|
{
|
|
internalType: "uint256",
|
|
name: "_amount",
|
|
type: "uint256"
|
|
}
|
|
],
|
|
name: "calculateLoanOriginationFee",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "",
|
|
type: "uint256"
|
|
}
|
|
],
|
|
stateMutability: "view",
|
|
type: "function"
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "getLoanOriginationFeePercentage",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "",
|
|
type: "uint256"
|
|
}
|
|
],
|
|
stateMutability: "view",
|
|
type: "function"
|
|
}
|
|
];
|