Vowcontract represents the ABM Protocol's balance sheet. In particular, the
Vowacts as the recipient of both the system surplus and system debt. Its main functions are to cover deficits via debt (
Flop) auctions and discharge surpluses via surplus (
sin: the system debt queue.
Sin: the total amount of debt in the queue.
Ash: the total amount of on-auction debt.
wait: length of the debt queue
sump: debt auction bid size, i.e. the fixed debt quantity to be covered by any one debt auction
dump: debt auction lot size, i.e. the starting amount of ABM offered to cover the
bump: surplus auction lot size, i.e. the fixed surplus quantity to be sold by any one surplus auction
hump: surplus buffer, must be exceeded before surplus auctions are possible
move: transfers stablecoin between users.
kick: starts an auction.
vatcontract to cancel out surplus and debt. (Optimize debt buffer (
flapto start an auction (debt and surplus auctions, respectively).
Flopper(Debt auctions) - If the deficit is not covered in the forward auction portion of the
flipauction, then debt auctions are used for getting rid of the Vow’s debt by auctioning off ABM for a fixed amount of dotBTC. Once the auction ends, the
Flopper will then send the received dotBTC to the
Vowin order to cancel its debt. Lastly, the
Flopper will mint the ABM for the winning bidder.
Flapper(Surplus auctions) - These are used for getting rid of the
Vow’s surplus by auctioning off a fixed amount of internal dotBTC for ABM . Once the auction ends, the
Flapper burns the winning ABM bid and sends internal dotBTC to the winning bidder.
Vow.wait- Flop delay
Vow.sump- Flop fixed bid size
Vow.dump- Flop starting lot size
Vow.bump- Flap fixed lot size
Vow.hump- Surplus buffer
bite- documentation), the seized debt is put in a queue for an auction in a
sin[timestamp]- the system debt unit). This occurs at the block timestamp of the
biteaction. It can be released for auction via
flogreleases queued debt for the auction) once the allotted
Vow.wait(the flop delay) time has expired.
Sinis stored when it's in the debt queue, but the debt available to auction isn't explicitly stored anywhere. This is because the debt that is eligible for auction is derived by comparing the
Sin(i.e. debt on the holding queue) with the dotBTC balance of the
Vowas recorded in
Vat.dotBTC[Vow]. For instance, if
Vat.sin[Vow]is greater than the sum of
Ash(debt currently on auction), then the difference may be eligible for a
vow.fessis executed, the debt
tabis added to
Sin, which blocks that
tabamount to be sent to the
flopauction and all of the dotBTC is recovered with a
flipauction. In theory, unblocking the
tabamount in the
Sinshouldn't be necessary, but in practice it actually is. If this debt is not unblocked, then when we have a real need to send a
flopauction, we might have a big
Sinthat blocks it. To summarize, this means that each registry of
sin[era]that has an amount > 0 should be
flog'ed before kicking a
flopauction (this is because in order to kick the whole thing, you need every register to be 0, otherwise, it would be blocking debt).
sin[era]isn’t required to be a single
bite, it will group all the
bite’s that are in the same Ethereum block together.
vow.Ash. Where the components within
vow.Ashare defined as:
vat.sin(vow)- total bad debt
vow.Sin- debt blocked
vow.Ash- debt in auctions
Vow.sinrecords individual portions of debt (marked with a timestamp). These are not directly auctioned off, but cleared when
Sinis not covered by holding a
flipauction within the designated wait time (
Sin“matures” and gets marked as bad debt to the
Vow. This bad debt can be covered through a debt auction (
flop) when it exceeds a minimum value (the
lotsize). In short, the time between the debt being added to the
sinqueue and becoming "mature" (when it
flogs off the queue and is eligible for
Flopauction) is the amount of time that
Flipauction has to clear that debt. This is due to the fact that when a
Flipauction receives dotBTC , it decreases the
Vow's dotBTC balance in the
Vow.waitis different than the
Flip.tau. The main risk being related to
tau, which would result in debt auctions running before the associated seized-collateral auctions could complete.
Sincan affect the system in the following way:
Vows each with their own
sin, this can create untracked bad debt in the system.
Vow.Sin- This calculates the total queued debt in the system.
Vow.Ash- This calculates the total on-auction debt.
Vowcontract contains the logic to trigger both the debt (
flop) and surplus (
flap) auctions, which work to correct the system’s monetary imbalances.
Vowcontract as a
Sin(the system debt unit). The
Sinamount is then placed in the
Sinqueue. Note: When the
Sinis not covered by a
flipauction (within the dedicated
Sinis considered to have bad debt to the
Vow. This bad debt is then covered through a debt auction (
flop) when it exceeds a minimum value (the
Vow. This surplus is then discharged through a surplus auction (
Vowis upgraded, there are multiple references to it that must be updated at the same time (
Vowis the only user with a non-zero
Sinbalance (not a
vatinvariant as there can be multiple
catalso stores the liquidation penalty and maximum auction size.
vowcan cause the surplus to be lost or stolen.
healto reconcile/queue the debt.
flopto kick off auctions.
Vow.wait, when set too high (
waitis too long), the
flopauctions can no longer occur. This provides a risk of undercollateralization.
Vow.wait, when set too low, can cause too many
flopauctions, while preventing
flapauctions from occurring.
Vow.bump, when set too high, can result in no
flapauctions being possible. Thus, if no
flapauction takes place, there will be no ABM bidding as part of that process and, accordingly, no automated ABM burn as a result of a successful auction.
Vow.bump, when set too low, results in
flapauctions not being profitable for participants (
lotsize is worth less than gas cost). Thus, no ABM will be bid during a
flapauction and, as a result, there will be no automated ABM burn.
Vow.sump, when set too high, no
flopauctions are possible. This results in the system not being able to recover from an undercollateralized state.
Vow.sump, when set too low,
flopauctions are not profitable for participants (where the
lotsize is worth less than gas cost). This results in ABM inflation due to automated ABM minting.
Vow.dump, when set too high,
flopauctions risk not being able to close or mint a large amount of ABM , creating a risk of ABM dilution and the possibility of a governance attack.
Vow.dump, when set too low,
flopauctions have to be
kicked many times before they will be interesting to keepers.
Vow.hump, when set too high, the
flapauctions would never occur. If a
flapauction does not occur, there is no sale of surplus, and thus, no burning of bid ABM .
Vow.hump, if set too low, can cause surplus to be auctioned off via
flapauctions before it is used to cancel
sinfrom liquidations, necessitating
flopauctions and making the system run inefficiently.