Skip to content

Commit

Permalink
Merge branch 'development' into 1124-borrow-caps-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
peetzweg committed Jan 25, 2023
2 parents 335e709 + c73a51a commit a6fd8eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/sdk/src/modules/CreateContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function withCreateContracts<TBase extends MidasBaseConstructor>(Base: TB
createFlywheelStaticRewards = this.createContractInstance<FlywheelStaticRewards>(FlywheelStaticRewardsABI);
createJumpRateModel = this.createContractInstance<JumpRateModel>(JumpRateModelABI);

createComptroller(comptrollerAddress: string, signerOrProvider: SignerOrProvider = this.signer) {
createComptroller(comptrollerAddress: string, signerOrProvider: SignerOrProvider = this.provider) {
if (this.chainDeployment.ComptrollerFirstExtension) {
return new Contract(
comptrollerAddress,
Expand All @@ -62,15 +62,15 @@ export function withCreateContracts<TBase extends MidasBaseConstructor>(Base: TB
return new Contract(address, CErc20DelegateABI, signerOrProvider) as CTokenWithExtensions;
}

createCErc20PluginRewardsDelegate(cTokenAddress: string, signerOrProvider: SignerOrProvider = this.signer) {
createCErc20PluginRewardsDelegate(cTokenAddress: string, signerOrProvider: SignerOrProvider = this.provider) {
return new Contract(
cTokenAddress,
CErc20PluginRewardsDelegateABI,
signerOrProvider
) as CErc20PluginRewardsDelegate;
}

createMasterPriceOracle(signerOrProvider: SignerOrProvider = this.signer) {
createMasterPriceOracle(signerOrProvider: SignerOrProvider = this.provider) {
return new Contract(
this.chainDeployment.MasterPriceOracle.address,
MasterPriceOracleABI,
Expand Down

0 comments on commit a6fd8eb

Please sign in to comment.