MarketAdmin
The sdk instance used by the market admin.
The raw web3 contract instance for the market admin.
Contract address of the market admin.
Type:
string
Parameters:
Parameters:
distributor: string
-
Parameters:
Deploys a cToken directory into comptroller.
Parameters:
deployData: DeployMarketData
- An object with all the values needed for deployment.
Returns whether the contract is a MarketAdmin contract.
Parameters:
Returns:
Promise<boolean>
Returns the owner of the contract.
Parameters:
Returns:
Promise<string>
Reduces reserves from a cToken.
Parameters:
cToken: string
- The cToken to reduce reserves from.reduceAmount: number | string | BN
- The amount to reduce.to: string
- The account to transfer funds to.
Parameters:
Sets the admin fee for a cToken.
Parameters:
cToken: string
- The cToken to set the admin fee of.newAdminFeeMantissa: number | string | BN
- new admin fee for the cToken.
Sets borrow caps for the given cTokens.
Parameters:
cTokens: string[]
- The addresses of the cTokens.newBorrowCaps: (number | string | BN)[]
- The new borrow caps for the tokens.
Sets the borrow/mint pause state for the given cToken.
Parameters:
cToken: string
- The cToken to update the state of.action: CTokenActions
- The cToken action to update the state of.state: boolean
- The new state for the given action and cToken.
Sets the close factor for a comptroller.
Parameters:
newCLoseFactorMantissa: number | string | BN
- New close factor.
Sets collateral factor for a cToken.
Parameters:
cToken: string
- The cToken to update the collateral factor of.newCollateralFactorMantissa: number | string | BN
- New collateral factor.
Updates the state of transfer/seize pause.
Parameters:
action: GlobalActions
- The action to update the state of.state: boolean
- New state for the selected action.
Updates the interest rate model for a particular cToken.
Parameters:
cToken: string
- The cToken to update the interest rate model of.newIRM: string
- New IRM address.
Updates liquidation incentive of the comptroller.
Parameters:
newLiquidationIncentive: number | string | BN
- New liquidation incentive for the comptroller.
Updates the name of symbol for a particular cToken.
Parameters:
cToken: string
- The cToken to update the name or symbol of.name: string
- New name for the cToken.symbol: string
- New symbol for the cToken.
Updates the price oracle of the comptroller.
Parameters:
newOracle: string
- New price oracle address.
Updates the reserve factor for a particular cToken.
Parameters:
cToken: string
- The cToken to update the reserve factor of.newReserveFactor: number | string | BN
- New reserve factor for the cToken.
Updates supply caps for particular cTokens.
Parameters:
cToken: string[]
- A list of cTokens to update the supply caps of.newSupplyCaps: (number | string | BN)[]
- New supply caps for the cTokens.
Updates enforcement status for the comptroller whitelist.
Parameters:
enforce: boolean
- The new enforcement status for the whitelist.
Updates supplier statuses in the whitelist.
Parameters:
suppliers: string[]
- The list of suppliers to update the statuses of.statuses: boolean[]
- New statuses for the suppliers.
Adds a new cToken to the market.
Parameters:
cToken: string
- Address of the new cToken to add.
Transfers contract ownership to a different account.
Parameters:
newOwner: string
- New owner of the contract.
Removes a cToken from the market.
Parameters:
cToken: string
- The cToken to remove from the market.
Withdraws admin fee from the cToken.
Parameters:
cToken: string
- The cToken to withdraw admin fee of.withdrawAmount: number | string | BN
- The amount of fee to withdraw.to: string
- The address to send the withdraw amount to.
Last modified 1yr ago