import { IAaveMigrator } from '@types' ; import Contract from './contract' ; const ABI = [ { inputs : [ { internalType : 'contract IERC20' , name : 'aave' , type : 'address' } , { internalType : 'contract IERC20' , name : 'lend' , type : 'address' } , { internalType : 'uint256' , name : 'lendAaveRatio' , type : 'uint256' } ] , stateMutability : 'nonpayable' , type : 'constructor' } , { anonymous : false , inputs : [ { indexed : true , internalType : 'address' , name : 'sender' , type : 'address' } , { indexed : true , internalType : 'uint256' , name : 'amount' , type : 'uint256' } ] , name : 'LendMigrated' , type : 'event' } , { inputs : [ ] , name : 'AAVE' , outputs : [ { internalType : 'contract IERC20' , name : '' , type : 'address' } ] , stateMutability : 'view' , type : 'function' } , { inputs : [ ] , name : 'LEND' , outputs : [ { internalType : 'contract IERC20' , name : '' , type : 'address' } ] , stateMutability : 'view' , type : 'function' } , { inputs : [ ] , name : 'LEND_AAVE_RATIO' , outputs : [ { internalType : 'uint256' , name : '' , type : 'uint256' } ] , stateMutability : 'view' , type : 'function' } , { inputs : [ ] , name : 'REVISION' , outputs : [ { internalType : 'uint256' , name : '' , type : 'uint256' } ] , stateMutability : 'view' , type : 'function' } , { inputs : [ ] , name : '_totalLendMigrated' , outputs : [ { internalType : 'uint256' , name : '' , type : 'uint256' } ] , stateMutability : 'view' , type : 'function' } , { inputs : [ ] , name : 'initialize' , outputs : [ ] , stateMutability : 'nonpayable' , type : 'function' } , { inputs : [ { internalType : 'uint256' , name : 'amount' , type : 'uint256' } ] , name : 'migrateFromLEND' , outputs : [ ] , stateMutability : 'nonpayable' , type : 'function' } , { inputs : [ ] , name : 'migrationStarted' , outputs : [ { internalType : 'bool' , name : '' , type : 'bool' } ] , stateMutability : 'view' , type : 'function' } ] ; export const AaveMigrator = ( new Contract ( ABI , { decimals : [ 'decimals' ] , symbol : [ 'symbol' ] , approve : [ 'approved' ] } ) as any ) as IAaveMigrator ;