export const name = 'CollateralManager'; export const address = '0xA79176721210834D08b5A37bfce29f5d84968C11'; export const source = 'CollateralManager'; export const abi = [ 'constructor(address _state, address _owner, address _resolver, uint256 _maxDebt, uint256 _maxSkewRate, uint256 _baseBorrowRate, uint256 _baseShortRate)', 'event BaseBorrowRateUpdated(uint256 baseBorrowRate)', 'event BaseShortRateUpdated(uint256 baseShortRate)', 'event CacheUpdated(bytes32 name, address destination)', 'event CollateralAdded(address collateral)', 'event CollateralRemoved(address collateral)', 'event LiquidationPenaltyUpdated(uint256 liquidationPenalty)', 'event MaxDebtUpdated(uint256 maxDebt)', 'event MaxSkewRateUpdated(uint256 maxSkewRate)', 'event OwnerChanged(address oldOwner, address newOwner)', 'event OwnerNominated(address newOwner)', 'event PauseChanged(bool isPaused)', 'event ShortableSynthAdded(bytes32 synth)', 'event ShortableSynthRemoved(bytes32 synth)', 'event SynthAdded(bytes32 synth)', 'event SynthRemoved(bytes32 synth)', 'event UtilisationMultiplierUpdated(uint256 utilisationMultiplier)', 'function CONTRACT_NAME() view returns (bytes32)', 'function acceptOwnership()', 'function baseBorrowRate() view returns (uint256)', 'function baseShortRate() view returns (uint256)', 'function isResolverCached() view returns (bool)', 'function lastPauseTime() view returns (uint256)', 'function maxDebt() view returns (uint256)', 'function maxSkewRate() view returns (uint256)', 'function nominateNewOwner(address _owner)', 'function nominatedOwner() view returns (address)', 'function owner() view returns (address)', 'function paused() view returns (bool)', 'function rebuildCache()', 'function resolver() view returns (address)', 'function setPaused(bool _paused)', 'function shortableSynthsByKey(bytes32) view returns (bytes32)', 'function state() view returns (address)', 'function synthsByKey(bytes32) view returns (bytes32)', 'function utilisationMultiplier() view returns (uint256)', 'function resolverAddressesRequired() view returns (bytes32[] addresses)', 'function isSynthManaged(bytes32 currencyKey) view returns (bool)', 'function hasCollateral(address collateral) view returns (bool)', 'function hasAllCollaterals(address[] collaterals) view returns (bool)', 'function long(bytes32 synth) view returns (uint256 amount)', 'function short(bytes32 synth) view returns (uint256 amount)', 'function totalLong() view returns (uint256 susdValue, bool anyRateIsInvalid)', 'function totalShort() view returns (uint256 susdValue, bool anyRateIsInvalid)', 'function totalLongAndShort() view returns (uint256 susdValue, bool anyRateIsInvalid)', 'function getBorrowRate() view returns (uint256 borrowRate, bool anyRateIsInvalid)', 'function getShortRate(bytes32 synthKey) view returns (uint256 shortRate, bool rateIsInvalid)', 'function getRatesAndTime(uint256 index) view returns (uint256 entryRate, uint256 lastRate, uint256 lastUpdated, uint256 newIndex)', 'function getShortRatesAndTime(bytes32 currency, uint256 index) view returns (uint256 entryRate, uint256 lastRate, uint256 lastUpdated, uint256 newIndex)', 'function exceedsDebtLimit(uint256 amount, bytes32 currency) view returns (bool canIssue, bool anyRateIsInvalid)', 'function setUtilisationMultiplier(uint256 _utilisationMultiplier)', 'function setMaxDebt(uint256 _maxDebt)', 'function setMaxSkewRate(uint256 _maxSkewRate)', 'function setBaseBorrowRate(uint256 _baseBorrowRate)', 'function setBaseShortRate(uint256 _baseShortRate)', 'function getNewLoanId() returns (uint256 id)', 'function addCollaterals(address[] collaterals)', 'function removeCollaterals(address[] collaterals)', 'function addSynths(bytes32[] synthNamesInResolver, bytes32[] synthKeys)', 'function areSynthsAndCurrenciesSet(bytes32[] requiredSynthNamesInResolver, bytes32[] synthKeys) view returns (bool)', 'function removeSynths(bytes32[] synthNamesInResolver, bytes32[] synthKeys)', 'function addShortableSynths(bytes32[] requiredSynthNamesInResolver, bytes32[] synthKeys)', 'function areShortableSynthsSet(bytes32[] requiredSynthNamesInResolver, bytes32[] synthKeys) view returns (bool)', 'function removeShortableSynths(bytes32[] synths)', 'function updateBorrowRatesCollateral(uint256 rate)', 'function updateShortRatesCollateral(bytes32 currency, uint256 rate)', 'function incrementLongs(bytes32 synth, uint256 amount)', 'function decrementLongs(bytes32 synth, uint256 amount)', 'function incrementShorts(bytes32 synth, uint256 amount)', 'function decrementShorts(bytes32 synth, uint256 amount)', 'function accrueInterest(uint256 interestIndex, bytes32 currency, bool isShort) returns (uint256 difference, uint256 index)', ];