TermEventEmitter.sol

This contract operates at the protocol level and governs all instances of a Term Repo. This contract is a centralized event emitter that records important events to the blockchain

TermEventEmitter

This contract is a centralized event emitter that records important events to the blockchain

This contract operates at the protocol level and governs all instances of a Term Repo

DEVOPS_ROLE

bytes32 DEVOPS_ROLE

INITIALIZER_ROLE

bytes32 INITIALIZER_ROLE

TERM_CONTRACT

bytes32 TERM_CONTRACT

TERM_DELISTER

bytes32 TERM_DELISTER

constructor

constructor() public

initialize

function initialize(address devopsWallet_, address termDelister_, address termInitializer_) external

pairTermContract

function pairTermContract(address termContract) external

emitTermAuctionInitialized

function emitTermAuctionInitialized(bytes32 termRepoId, bytes32 termAuctionId, address termAuction, uint256 auctionEndTime, string version) external

Parameters

emitBidAssigned

function emitBidAssigned(bytes32 termAuctionId, bytes32 id, uint256 amount) external

Parameters

emitOfferAssigned

function emitOfferAssigned(bytes32 termAuctionId, bytes32 id, uint256 amount) external

Parameters

emitAuctionCompleted

function emitAuctionCompleted(bytes32 termAuctionId, uint256 timestamp, uint256 blockNumber, uint256 totalAssignedBids, uint256 totalAssignedOffers, uint256 clearingPrice) external

Parameters

emitAuctionCancelled

function emitAuctionCancelled(bytes32 termAuctionId, bool nonViableAuction, bool auctionCancelledforWithdrawal) external

Parameters

emitCompleteAuctionPaused

function emitCompleteAuctionPaused(bytes32 termAuctionId, bytes32 termRepoId) external

Parameters

emitCompleteAuctionUnpaused

function emitCompleteAuctionUnpaused(bytes32 termAuctionId, bytes32 termRepoId) external

Parameters

emitTermAuctionBidLockerInitialized

function emitTermAuctionBidLockerInitialized(bytes32 termRepoId, bytes32 termAuctionId, address termAuctionBidLocker, uint256 auctionStartTime, uint256 revealTime, uint256 maxBidPrice, uint256 minimumTenderAmount, uint256 dayCountFractionMantissa) external

Parameters

emitBidLocked

function emitBidLocked(bytes32 termAuctionId, struct TermAuctionBid bid, address referralAddress) external

Parameters

emitBidRevealed

function emitBidRevealed(bytes32 termAuctionId, bytes32 id, uint256 bidPrice) external

Parameters

emitBidUnlocked

function emitBidUnlocked(bytes32 termAuctionId, bytes32 id) external

Parameters

emitBidInShortfall

function emitBidInShortfall(bytes32 termAuctionId, bytes32 id) external

Parameters

emitBidLockingPaused

function emitBidLockingPaused(bytes32 termAuctionId, bytes32 termRepoId) external

Parameters

emitBidLockingUnpaused

function emitBidLockingUnpaused(bytes32 termAuctionId, bytes32 termRepoId) external

Parameters

emitBidUnlockingPaused

function emitBidUnlockingPaused(bytes32 termAuctionId, bytes32 termRepoId) external

Parameters

emitBidUnlockingUnpaused

function emitBidUnlockingUnpaused(bytes32 termAuctionId, bytes32 termRepoId) external

Parameters

emitTermAuctionOfferLockerInitialized

function emitTermAuctionOfferLockerInitialized(bytes32 termRepoId, bytes32 termAuctionId, address termAuctionOfferLocker, uint256 auctionStartTime, uint256 revealTime, uint256 maxOfferPrice, uint256 minimumTenderAmount) external

Parameters

emitOfferLocked

function emitOfferLocked(bytes32 termAuctionId, bytes32 id, address offeror, bytes32 offerPrice, uint256 amount, address purchaseToken, address referralAddress) external

Parameters

emitOfferRevealed

function emitOfferRevealed(bytes32 termAuctionId, bytes32 id, uint256 offerPrice) external

Parameters

emitOfferUnlocked

function emitOfferUnlocked(bytes32 termAuctionId, bytes32 id) external

Parameters

emitOfferLockingPaused

function emitOfferLockingPaused(bytes32 termAuctionId, bytes32 termRepoId) external

Parameters

emitOfferLockingUnpaused

function emitOfferLockingUnpaused(bytes32 termAuctionId, bytes32 termRepoId) external

Parameters

emitOfferUnlockingPaused

function emitOfferUnlockingPaused(bytes32 termAuctionId, bytes32 termRepoId) external

Parameters

emitOfferUnlockingUnpaused

function emitOfferUnlockingUnpaused(bytes32 termAuctionId, bytes32 termRepoId) external

Parameters

emitTermRepoCollateralManagerInitialized

function emitTermRepoCollateralManagerInitialized(bytes32 termRepoId, address termRepoCollateralManager, address[] collateralTokens, uint256[] initialCollateralRatios, uint256[] maintenanceCollateralRatios, uint256[] liquidatedDamagesSchedule) external

Parameters

emitPairReopeningBidLocker

function emitPairReopeningBidLocker(bytes32 termRepoId, address termRepoCollateralManager, address termAuctionBidLocker) external

Parameters

emitCollateralLocked

function emitCollateralLocked(bytes32 termRepoId, address borrower, address collateralToken, uint256 amount) external

Parameters

emitCollateralUnlocked

function emitCollateralUnlocked(bytes32 termRepoId, address borrower, address collateralToken, uint256 amount) external

Parameters

emitLiquidation

function emitLiquidation(bytes32 termRepoId, address borrower, address liquidator, uint256 closureAmount, address collateralToken, uint256 amountLiquidated, uint256 protocolSeizureAmount, bool defaultLiquidation) external

Parameters

emitLiquidationPaused

function emitLiquidationPaused(bytes32 termRepoId) external

Parameters

emitLiquidationUnpaused

function emitLiquidationUnpaused(bytes32 termRepoId) external

Parameters

emitTermRepoServicerInitialized

function emitTermRepoServicerInitialized(bytes32 termRepoId, address termRepoServicer, address purchaseToken, uint256 maturityTimestamp, uint256 endOfRepurchaseWindow, uint256 redemptionTimestamp, uint256 servicingFee, string version) external

Parameters

emitReopeningOfferLockerPaired

function emitReopeningOfferLockerPaired(bytes32 termRepoId, address termRepoServicer, address termAuctionOfferLocker, address termAuction) external

Parameters

emitOfferLockedByServicer

function emitOfferLockedByServicer(bytes32 termRepoId, address offeror, uint256 amount) external

This event is not to be confused with OfferLocked by TermOfferLocker Both this event and OfferLocked will be triggered, this one specifically refers to corresponding action taken by Term Servicer

Parameters

emitOfferUnlockedByServicer

function emitOfferUnlockedByServicer(bytes32 termRepoId, address offeror, uint256 amount) external

This event is not to be confused with OfferUnlocked by TermOfferLocker Both this event and OfferLocked will be triggered, this one specifically refers to corresponding action taken by Term Servicer

Parameters

emitOfferFulfilled

function emitOfferFulfilled(bytes32 offerId, address offeror, uint256 purchasePrice, uint256 repurchasePrice, uint256 repoTokensMinted) external

Parameters

emitTermRepoTokensRedeemed

function emitTermRepoTokensRedeemed(bytes32 termRepoId, address redeemer, uint256 redemptionAmount, uint256 redemptionHaircut) external

Parameters

emitBidFulfilled

function emitBidFulfilled(bytes32 termRepoId, address bidder, uint256 purchasePrice, uint256 repurchasePrice, uint256 servicingFees) external

Parameters

emitExposureOpenedOnRolloverNew

function emitExposureOpenedOnRolloverNew(bytes32 termRepoId, address borrower, uint256 purchasePrice, uint256 repurchasePrice, uint256 servicingFees) external

Parameters

emitExposureClosedOnRolloverExisting

function emitExposureClosedOnRolloverExisting(bytes32 termRepoId, address borrower, uint256 amountRolled) external

Parameters

emitRepurchasePaymentSubmitted

function emitRepurchasePaymentSubmitted(bytes32 termRepoId, address borrower, uint256 amount) external

Parameters

emitMintExposureAccessGranted

function emitMintExposureAccessGranted(bytes32 termRepoId, address authedUser) external

Parameters

emitMintExposure

function emitMintExposure(bytes32 termRepoId, address minter, uint256 netTokensReceived, uint256 servicingFeeTokens, uint256 repurchasePrice) external

Parameters

emitBurnCollapseExposure

function emitBurnCollapseExposure(bytes32 termRepoId, address borrower, uint256 closeAmount) external

Parameters

emitTermRepoRolloverManagerInitialized

function emitTermRepoRolloverManagerInitialized(bytes32 termRepoId, address rolloverManager) external

Parameters

emitRolloverTermApproved

function emitRolloverTermApproved(bytes32 termRepoId, bytes32 rolloverTermAuctionId) external

Parameters

emitRolloverTermApprovalRevoked

function emitRolloverTermApprovalRevoked(bytes32 termRepoId, bytes32 rolloverTermAuctionId) external

Parameters

emitRolloverElection

function emitRolloverElection(bytes32 termRepoId, bytes32 rolloverTermRepoId, address borrower, address rolloverAuction, uint256 rolloverAmount, bytes32 hashedBidPrice) external

Parameters

emitRolloverCancellation

function emitRolloverCancellation(bytes32 termRepoId, address borrower) external

Parameters

emitRolloverProcessed

function emitRolloverProcessed(bytes32 termRepoId, address borrower) external

Parameters

emitTermRepoLockerInitialized

function emitTermRepoLockerInitialized(bytes32 termRepoId, address termRepoLocker) external

Parameters

emitTermRepoLockerTransfersPaused

function emitTermRepoLockerTransfersPaused(bytes32 termRepoId) external

Parameters

emitTermRepoLockerTransfersUnpaused

function emitTermRepoLockerTransfersUnpaused(bytes32 termRepoId) external

Parameters

emitTermRepoTokenInitialized

function emitTermRepoTokenInitialized(bytes32 termRepoId, address termRepoToken, uint256 redemptionRatio) external

Parameters

emitTermRepoTokenMintingPaused

function emitTermRepoTokenMintingPaused(bytes32 termRepoId) external

Parameters

emitTermRepoTokenMintingUnpaused

function emitTermRepoTokenMintingUnpaused(bytes32 termRepoId) external

Parameters

emitTermRepoTokenBurningPaused

function emitTermRepoTokenBurningPaused(bytes32 termRepoId) external

Parameters

emitTermRepoTokenBurningUnpaused

function emitTermRepoTokenBurningUnpaused(bytes32 termRepoId) external

Parameters

emitDelistTermRepo

function emitDelistTermRepo(bytes32 termRepoId) external

Parameters

emitDelistTermAuction

function emitDelistTermAuction(bytes32 termAuctionId) external

Parameters

emitTermContractUpgraded

function emitTermContractUpgraded(address proxy, address implementation) external

Parameters

_authorizeUpgrade

function _authorizeUpgrade(address) internal view

required override by the OpenZeppelin UUPS module

Last updated