RFC - Abracadabra Community-Focused Liquidation Mechanism

Hi Federico, honestly do apologise if my tone is coming out poorly, but this person used to work with us, and has been discrediting our business on Twitter etc. I shouldn’t have replied at all to be honest, but I really do value the work we’ve done so it’s quite hard when you see that type of stuff happening.

Happy to answer questions from legit community members, but as I say this is an ex team member with an agenda, and it’s hard not to react. Appreciate all your points though. I’d be happy to chat on Telegram if you wanted more info. It’s quite hard in one forum post but definitely happy to help wherever possible. Cheers

What you’ve explained is how any basic liquidation works:

  1. User’s LTV is too high
  2. Someone purchases the collateral which repays the loaner
  3. Borrower loses collateral

But you’ve also made a lot of misunderstanding yourself.

ORCA is not all that complicated, instead of selling to whoever calls the liquidation function, the collateral is sold instantly and split evenly between all the bids, from highest to lowest (lowest discount to highest discount).

The auction queue does not make it less stable, the liquidation happens in exactly the same way, the difference is it’s not first come first serve anymore - which mainly benefits those who understand the underlying mechanics and can interface with contracts directly - i.e. run a bot.

The reason there can be a discount is because if the loaner is lending up to 60% of the collateral, they can sell the collateral for 30% discount and still make all their money back. Kujira only take a 0.5% fee on the collateral you buy - I’ve used the platform loads and its actually a tiny amount when you’re buying Luna at a 10% discount of an already dumped price.

Users do not have to have tens of thousands (if not millions) of dollars locked up, you can bid any amount you want. How is it less democratic to allow more people to participate with whatever amount of money they want to and get an equal slice of the pie without needing to code - plus it really fun to use, and you feel like you’re actually involved.

Disclosure here for you and @frederico - I’ve been an early backer of Harpoon and now Kujira, I came over here when I heard about their proposal. The Terra community is small and we all know this FR guy was involved in Harpoon, and for whatever reason left and clearly has a problem with the team and Anchor too. Maybe the proposal isn’t very clear, but as someone who has used ORCA and been following for a long time, this creates no more risk and distributes a lot more to the community who can participate a lot easier.

I think the main pushback here is from people making money running bots who have an upper hand on the rest of the community.

2 Likes

wow is this even possible

Is this a request for comments, or a request for positive comments?

You keep attacking me personally but I don’t even disagree with your post, just disagree that giving Kujira a fee is a good use of abracadabra platform. The fee should go to SPELL stakers, not Kujira. It is on you to convince the community that kujira provides enough value that the fee should be given to $KUJI and not $SPELL and proposing that abracadabra build out a novel liquidation auction contract but leave the front end to you to extract a tax isn’t very convincing.

1 Like

i think you should read his original comment one more time and think about it harder this time … this is a collabe mate … Kujira from what i can understand will be the one giving spell a helping hand it will only be fair they get something in return dont you think ?

Thanks for highlighting the factual inaccuracies in the OP. Yes, the author misunderstands how liquidations works on abracadabra because he didn’t even bother opening up the docs to read up on it, and is instead parroting on about how liquidations work on anchor protocol. You will notice that @deadrightdove will not directly answer your points.

The proposed mechanism is actually less democratic than the current system. Under the queue/auction system, liquidators need to have tens of thousands (if not millions) of dollars that they are able to lock up ahead of liquidations.

Yes, this is accurate, currently TFL provides the majority of the 50m locked up in the liquidation queue. This was redesigned on purpose to favor TFL, who is the only one that can afford lock up 50m in a non-interest bearing liquidation auction, after TFL was caught cheating on liquidations.

Third, protocols have experimented with auction-like or queue-like liquidations in the past with poor results . For example, MakerDAO had instances where during a crash the auctions barely functioned. Because prices dropped so quickly, the auctions performed poorly and liquidators were able to purchase collateral for almost nothing. Everyone got rekt because of the bad liquidation design, which is exactly what Kashi and Abracadabra are made to avoid. The reality is that the Abracadabra/Kashi CDP liquidation system is time-tested and strong. It is simple, decentralized, democratic, and proven.

Agreed that a resilient liquidation system needs to be able to independently stand on its own, and currently the anchor queue is 99% TFL money. You would need to rely people using a UI to provide capital during a major crash if the queue is empty because there are no bots that are auto-liquidating.

Cascading liquidations from Abracadabra are not really a concern for most cauldrons. Selling even $100M of liquidated yvWETH or cvxTricrypto collateral would be inconsequential during a crash when $78B of ETH were traded in one day during the May crash on centralized exchanges and $11B on DEXs. That same week, $12 Billion of leveraged Bitcoin positions were liquidated. The chosen Abracadabra liquidation mechanism has literally zero effect in these markets when compared to institutional investors.

OP has the mistaken impression that liquidations on abracadabra will cause cascades on BTC and ETH price because he is convinced that decentralized liquidators on anchor protocol is what caused the may price crash for luna, even though only 10m luna was liquidated during that time and CEX volume was over 3B :thinking:

1 Like

Lets go into @deadrightdove’s OP for a second.

They usually do so at the highest premium allowed and inevitably sell these assets on the open market right away.

Wrong. liquidation fees are set based on collateral, there is only 1 premium and the concept of a variable premium (up to 30%!!!) doesn’t really exist in the rest of defi.

Can you explain how this queue will work for the cvx3pool with its 4% liquidation fee? Change it to anchor protocols system of a variable 30% fee and wreck borrowers?

Not only do the few benefit from the losses of many, the way in which it’s done extracts the maximum benefit, takes the maximum toll, and often aids in protracting the declining price.

There is no “max toll” and 1 decentralized money market isn’t causing BTC and ETH cascades.

He’s also going around on Twitter advertising a piece of software that means people get around paying a 0.5% commission on our platform that we worked for 6 solid months on. He was our very first backend dev, and left to get a full time job, but is still attacking us for seemingly no reason.

This I resent. Only a corporate-tard would think they are owed a rent on making a smart contract call. Also why are you doxing personal information about me? Why can’t your proposal stand on its own merits?

Anyway what makes you think you are entitled to a 1% fee (not .5% like you falsely claim here) for making a clearly documented contract call based on anchor’s own docs?

Full disclosure: I am NOT a abracadabra liquidator, just a spell staker. I do liquidate on cosmos and solana. My reason for posting here is to simply say that any fees should go to spell stakers and not some dude shilling his liquidation token. Anyone ever see a legit liquidation token before?

1 Like

It would be patently absurd to change an existing 12.5% or 4% (or whatever) discount to something higher.

The range of bids is set to some sensible range per-Cauldron - most safely with the highest premium being the current liquidation discount. What actually happens is that individuals’ bid strategies result in significantly lower premiums. The average premium across all liquidations on Anchor has dropped from a flat 30% to 8.9% for bLUNA and 7.9% for bETH.

In the last 6 weeks, instead of 5 whale bots cleaning up the max discount for themselves, 7500 individual community members have all bought $121m of assets at a discount and borrowers have had a lot less of their money taken when liquidated. Has worked out pretty well if you ask me.

6 Likes

Wow, seems like the community wants it but a couple of incredibly knowledgeable people have some issues.

I can give you my experience of Kujira/Orca as a Terra native and user. These guys are genuine crypto community friends. They are probably the most interactive and open team I have seen EVER. They listen to suggestions, answer questions and criticisms openly and collaboratively.

There tools are a success. I am a small investor, yet have picked up discounted assets at 3, 4, 7, 9 and 10% discount. This wasn’t in torrid times, it was degens taking too much risk. The difference is their loans weren’t sniped by BOTS and then the assets dumped. They were bought by thousands of us, who were glad of the discounted assets to HODL. Crash averted, I slurped a little and someone had the loan liquidated at a lower rate.

If your ecosystem needs this, I recommend Kujira 100%. If you believe the ex employee or the BOT owner…….up to you. Come over to their TG and ask the community :handshake:

2 Likes

Hello new user here, don’t know much about Abracadabra but plan on DMOR as only learnt about it from seeing this proposal shared by Kujira & other LUNAtics. I guess that’s a positive from apps going cross chain & widening their consumer bases.

I am an early ORCA user & $KUJI token holder & have benefited from liquidations only once, as I have my funds allocated in mid to high range premiums that have barely been touched. This I suppose is due to the fact that the cascading liquidation process has been slowed down by ORCA & a reason why I need to revise my own strategy once the advanced analytics are available, but I do know that many community members/users have benefited immensely from bEth & BLuna below market value at time of liquidation.

A big thing that I can comment on is how openly the team communicate with their telegram community answering all questions & concerns where possible. Not something that I see in most of the other protocol communities I am a member of. If you’re in doubt or have questions that require more explanation than you can get here then I’d advise reaching out to the team on telegram & I’m sure they’ll answer as much as they can.

1 Like

There have been many replies from ORCA/Kujira supporters since my initial post, but very few community members are engaging with my actual points and criticisms of this proposal. Let’s drop the personal attacks and discuss the design details. I understand that many people trust Kujira and believe the team are talented developers. That might be true, I don’t know their prior work. But before approving a proposal like this, I think it is important to engage with the problem and iron out any wrinkles. That hasn’t yet been done.

Abracadabra needs a liquidation system that works in a decentralized, robust, and proven way. We have this now, thanks to the bright minds of the Kashi team and Daniele’s team. Under the ORCA-like system, which has not been tested through any major crash, we would need stakers to deposit MIM in queue contracts where the MIM would not earn interest. It would mean that a few whales with millions of dollars, plus the Kujira/ORCA protocol, would receive the vast majority of liquidation proceeds.

For this proposal to work, Abracadabra would need hundreds of millions of dollars staked in the backstop liquidation queue contracts, otherwise the queue would fail (run out of money) during large market crashes.

Also in the event of a major crash, there is a significant risk for ORCA queue participants. Those who purchased ETH collateral at a 5% discount could be rekt if ETH goes down significantly in a day. The collateral the stakers bought at a “discount” could end up underwater. This is one of many reasons why the brightest minds in crypto have been opposed to this type of liquidation system.

If the purpose of this proposal is to increase the amount the community gets during liquidations, then there is a parameter in the cauldron contracts right now that can be adjusted to increase the percent of the liquidation that goes to the treasury.

If the purpose of this proposal is to decrease the frequency or pain of liquidations for users, then this will not accomplish those goals.

If the purpose of this proposal is to improve the liquidation mechanism to ensure stability, then I believe I have outlined why this is not only unnecessary, but a step in the wrong direction.

If the purpose is to eliminate cascading liquidations, then I believe I have also outlined why this is not relevant for 98% of the TVL on Abracadabra.

If the purpose is to send KUJI to the moon, then shame on those members pushing an agenda that would hurt the Abracadabra protocol.

1 Like

So these are some great points, thanks. We’ve just finished indexing every single bid execution since the new queue went live, so can speak to some of these with real data.

Under the ORCA-like system, which has not been tested through any major crash, we would need stakers to deposit MIM in queue contracts where the MIM would not earn interest.

This is a very fair point, and one we hear a lot from the Terra community today. The allure of a reliable, consistent, fixed APR is pretty strong compared to an unknown return from bidding on liquidations.

It’s only now that we’ve been live for ~ 6 weeks that we can start to pull some numbers together to make a comparison as naturally market downturns and the associated liquidations are unpredictable. What we’ve found is that a combination of the compounding effect of discounts (average ~8%), puts effective APR at around 80% for fairly conservative bids. When we also consider, that the general trend that dips recover (obviously not universally the case), these APRs start heading into the triple digits.

That is all to say that we’re pretty confident the returns from a sensible bidding strategy - which we plan to provide data, analytics and tools to support - will greatly exceed returns from the “safer” yield-bearing options.

It would mean that a few whales with millions of dollars, plus the Kujira/ORCA protocol, would receive the vast majority of liquidation proceeds.

This is definitely not the case, kind of the opposite really. Sure, whales with lots of dollars will still participate, and to your point below it’s really important that they do, but this approach allows everyone else to participate, too. The whales no longer have an advantage - if you bid at 5% and they bid at 5%, you both get a 5% discount. No more fastest-finger-first

For this proposal to work, Abracadabra would need hundreds of millions of dollars staked in the backstop liquidation queue contracts, otherwise the queue would fail (run out of money) during large market crashes.

This is a very fair point and something that 100% needs to be considered when the protocol is designed. The way we manage this today is with a bid_threshold parameter, which determines the total pool size below which there is no longer an activation period on bids. This activation period is a mechanic designed to prevent bots from sniping collateral at a slightly lower premium during market downturns (and works really well!), however as you rightly say, during a large crash it can mean the pools run out of funds.

When the pools fall below this threshold, bots are fully at play again and can implement their strategies as they do today - be it flash loans or whatever. It becomes a safety backstop to prevent insolvency in extreme situations, as opposed to the de-facto operation of the system.

Some comparison numbers - in 6 weeks, 121m UST has been used to repay collateral. 111m of that came from bids that waited for activation, whilst 10m came from bids that skipped the activation window. Some of these bids may have been from regular users bidding during the downturn, others may have been automated strategies. Regardless, the maximum pool that has been used is the 13% pool. No bids in any of the 14 - 30% pools have ever been touched - ie the system has always remained solvent.

There’s definitely a requirement for bots to provide this backstop, but in the more general day-to-day operation this opens the opportunity up to a much wider user base.

Also in the event of a major crash, there is a significant risk for ORCA queue participants. Those who purchased ETH collateral at a 5% discount could be rekt if ETH goes down significantly in a day. The collateral the stakers bought at a “discount” could end up underwater

This is true, plain and simple. And is the risk you take when purchasing any non-stable asset, whether it’s via a liqudiation or on an exchange. What we’re seeing is a narrative forming where users see bidding on liquidated collateral as similar to setting limit orders on an exchange - if effectively allows you to “buy the dip” (in fact it lets you buy the dip at a discount).

The simple fact is that during a market downturn, some people will experience loss. Whichever way you cut it, if you lock in your “profit” at the same moment that you buy liquidated collateral, somebody else has to buy it. It’s either you getting rekt or them. At least with a democratized approach like this queue, there is a broader range of strategies at play. Allowing folks to buy an asset that they are already accumulating, during a dip, at a discount, results in much more buying to hodl than immediately selling to lock in profit and allow a re-bid in the next block.

If the purpose of this proposal is to increase the amount the community gets during liquidations, then there is a parameter in the cauldron contracts right now that can be adjusted to increase the percent of the liquidation that goes to the treasury.

This is more about allowing the general defi user to access liquidations in a way that they weren’t before, and take profits that were previously exclusively the domain of whales and bots. If you remove that profit and just return it to the treasury, where is the incentive to provide the funds for liquidations? Why would I put up my money so that everyone else in the system gets a cut of those profits? I think the result of something like this is an incredibly insolvent system.

If the purpose of this proposal is to decrease the frequency or pain of liquidations for users, then this will not accomplish those goals.

I’m afraid it measurably does. Where previously borrowers were giving up 30% of their collateral to bots, the game theory at play with bid strategies has dropped that by over 70% to 7.9%. Borrowers getting less rekt, and 7,500 individual defi users helping to provide that capital and buy an asset at a discount.

I think the key thing here is that the profits that have been enjoyed by those running bots has not been stated clearly enough.

If I have a $1m pot, and a bot that’s liquidating at a 25% premium, and say $5m of loans become at risk over the course of a few blocks (and that’s a small event), then each block the bot buys the collateral and market-sells it to lock in the 25% profit, then in the space of 5 blocks - the bot owner is cleaning up 1 * 1.25 * 1.25 * 1.25 * 1.25 * 1.25.

The bot owner now has $3m where earlier that day they had $1m.

Do that a few times a year and you’re turning your $1m into $10m easy. That extra $9m doesn’t come out of thin air - it’s taken from the borrowers, and it’s taken from the market when the collateral is sold. What we’re doing here is taking that $9m, and giving everyone a chance to bid on it. And in doing so also minimizing the hit to the borrowers.

In my opinion, this is what democratizing finance is all about, it’s what defi is all about. Half that battle is designing and building financial systems that allow anyone to participate, and the other half of that battle is designing and building dapps and interfaces that allow anyone to use those systems. To use them safely, securely and with all the information they need to make good financial decisions.

Neither of those things are easy, or free to build, and we should be looking to distribute the responsibility for building and managing this infrastructure, rather than try and centralize it. Isn’t that why we’re all here in the first place?

2 Likes

Hi to everyone,

I’m familiar with the way Kujira works, but the biggest difference we have between what they are doing at Anchor and how would it work here is the liquidation fee.

Abracadabra’s biggest pools are the UST one, cvx3pool and cvxtricrypto2, that have 5% liquidation fee (cvxx3pool on 4%). Anchor on the other hand has 30%.

There is a lot of bidding room on a 30% liquidation fee, but I don’t see a lot of bidding going under 5%. Even the numbers Kujira team stated here is that their avg is 8% or something.

What codehans states here is not applicable with this result to Abracadabra.

Because liquidation fee on Abracadabra is small, I’m afraid on these pools the most of the liquidations would be captured by people that have a lot of money - as someone that is pledging 300K for liquidation can be happy with a 3% discount and will bid on 3%, but someone with 1000$ is not probably going to go after a asset for 3% discount. It’s 3% yes, but its 9000$ profit vs 30$, just trying to evaluate it with some common sense.

2 Likes

Yeah that’s certainly an interesting point. The way that bid strategies would play out was one of the big unknowns, and certainly would be here as well. Definitely an interesting one to rubber duck…

I wonder how things look if you approach it from the point of view of the bidder “what is my best strategy for my 300k” vs “what is a scenario where this big bag holder can undermine the democratic (as opposed to solvency/stability) goals of the queue mechanism” .

I think there’s definitely an element that bigger bag holders are willing to accept a lower return for a lower risk. I think probably driven by the inverse more than anything - that smaller bag holders are potentially looking for bigger gains and willing to take those risks (risk in this case being opportunity cost more than anything else).

If it plays out that way and we typically see big bag holders looking for the reliable 2% from a 4% max pool, they’re going to be less present in the higher premium pools on other cauldrons - freeing them up for the regular user.

The way we see it - and the direction we’re taking the dashboard and analytics side of the app - is more like a portfolio with accompanying guidance around bid strategies, all based on your preferences. That might cater for the whale who wants reliable, lower returns. Or it could be for the risk taker who wants less predictable but potentially much more lucrative returns. It’s all a case of personal preference, situation and motivations. I like to think that the more diverse the options - 4% max, 12.5% max, 30% max, or multi-collateral positions vs single asset markets, stable collateral, volatile collateral etc etc - creates an opportunity for a much more well-rounded portfolio for everyone involved.

1 Like

Fair view on this @codehans , i agree it’s a guessing game when it comes to some of the aspects.

To point out, as general idea to have some sort of bidding for liquidations, where some of that collateral ends up in wallets of hodlers, instead of people looking to dump straight away to capture a few % of profit, I like it.

1 Like

If it plays out that way and we typically see big bag holders looking for the reliable 2% from a 4% max pool, they’re going to be less present in the higher premium pools on other cauldrons - freeing them up for the regular user.

You can’t have a 4% max premium for cvx3pool without increasing the liquidation fee to 6% with anchor’s system because 1% is paid to the liquidation cranker and 1% is paid to kijura. To keep the liquidation fee at 4%, you would need to change the liquidation premium to 2% (+ 1% cranker + 1% kujira). Is there any data to suggest that a 2% premium is enough incentive to bid on liquidations during a market downturn because now we have to pay 2 additional middle men per liquidation, kujira and the liquidation cranker bot. If 2% is enough, we can simply lower the premium to 2% and cut out the middleman.

I’m afraid it measurably does. Where previously borrowers were giving up 30% of their collateral to bots, the game theory at play with bid strategies has dropped that by over 70% to 7.9%

This is factually inaccurate. Anchor protocol’s max premium before the queue was 15%. I’m sure you guys know this so I’m not sure why the kujira team constantly keeps talking about 30% premium pre-liquidation queue.

None of this addresses the most daming part of @ozymandias’s post. The liquidation queue/auction mechanism has failed before and changing the current system puts abracadabra at risk.

Lets talk about how these changes actually play out in the real world. Currently, bots have access to unlimited capital through flash loans and can flash borrow → liquidate → sell collat → repay borrow in the same tx as soon as a bad loan is found.

You want to change that with a queue that will have a limited amount of capital that will be used to liquidate, then the collateral will be waiting for the user to log back into the webUI and claim. What happens during a market crash when the queue runs out of funds? Ok, so the activation period is removed, now what happens? Users still have to log into orca and deposit new bids as the market is collapsing. What happens if they don’t? Abracadabra takes the loss on bad debt.

This is the primary difference between the existing system with the proposed queue is that the existing system has unlimited capital, performs immediately profitable liquidations and can handle severe market downturns. Your queue has limited capital, doesn’t autosell the collat, turns liquidators into bag holders and relys on people logging into refill the queue after it runs empty. If they don’t refill the queue, then abracadabra becomes the bagholder.

And is the risk you take when purchasing any non-stable asset, whether it’s via a liqudiation or on an exchange.

This is not the risk current abracadabra liquidators take since the flashloans require collat to be sold for a profit immediately. The fact that you want to turn liquidators into bagholders, and don’t realize that they will simple quit putting money into the queue when they are underwater in prolonged market downturns is troubling.

2 Likes

You can’t have a 4% max premium for cvx3pool without increasing the liquidation fee to 6% with anchor’s system because 1% is paid to the liquidation cranker and 1% is paid to kijura.

We’re not simply talking about a carbon copy of the system. None of these parameters are defined in the proposal, and nothing is set in stone. This is an opportunity to learn from a pioneering system and make adjustments where we can. Borrowing against stable assets is the most obvious candidate for that as the economics are so different. Equally, I personally feel that the 1% “cranker” fee is extortionate, and not in-line with the effort required. This should be capped at something much more reasonable and the benefits returned to the market.

Secondly I do wish you’d spend a second fact-checking before telling myself and my teammates how our system works. The fee is 0.5% when you use KUJI as the fee token. I appreciate that you believe good UX and UI to be worthless and writing them to be below your paygrade, but we believe that widespread adoption of defi truly happens when the experience for the average user is made perfect. We choose to align our incentives with those of our users, and place a fee only after they have successfully won collateral, and not throughout the functionality of our apps. These things don’t appear out of thin air. They require hard work, however trivial you may consider it, and we believe people value it.

This is factually inaccurate. Anchor protocol’s max premium before the queue was 15%. I’m sure you guys know this so I’m not sure why the kujira team constantly keeps talking about 30% premium pre-liquidation queue.

You’re kind of splitting hairs here. It was 30%, adjusted to 15 as a stop-gap to stop the bleeding before the queue was brought in. You know this just as well as I do and are being deliberately misleading in your argument. Either way, 7.9 is less than either 30 or 15.

You want to change that with a queue that will have a limited amount of capital that will be used to liquidate, then the collateral will be waiting for the user to log back into the webUI and claim. What happens during a market crash when the queue runs out of funds? Ok, so the activation period is removed, now what happens? Users still have to log into orca and deposit new bids as the market is collapsing. What happens if they don’t? Abracadabra takes the loss on bad debt.

Again, you’re being (I believe - you seem like a fundamentally smart person) deliberately selective and misleading in your argument. When the pools run out of funds, as clearly stated above, you can take your bot and you’re able to execute whichever strategy works best for you. Put another way, When the pools run low, the system no longer relies on a democratic approach, and defaults to the existing and well tested mechanism that favours the few with bots over the many. This is very deliberate mechanism to protect against insolvency. In normal operation, we have a much more democratic and decentralized solution.

This is not the risk current abracadabra liquidators take since the flashloans require collat to be sold for a profit immediately.

Once more. I struggle to believe that you don’t understand the knock-on effects of this. In a downturn, someone will always take on that loss. If your bot is market selling in the same block, you’re just passing that onto someone else. Is that a fair system? Whichever way you cut it, immediately selling those assets contributes to sell pressure, making the situation worse. It sounds a lot like you want to keep the power in the hands of the few, who are going to take all the profits and dump all the costs on everyone else when you market sell.

There’s a macro economic situation here, and one that is (probably) unique to defi. When ever in history has collateral been able to be sold, so routinely, and at market rate, in the same 10 seconds that it is taken from the borrower?!

There’s more to these crashes than just the assets bought and sold from a specific lending platform. If you haven’t got bots market-selling the millions of dollars of assets during a dip in price, then maybe the leveraged positions on Binance don’t got called, and in turn maybe more loans on Abracadabra don’t go bad, and maybe folks don’t sell their “moonshot” assets to repay other leveraged positions, and then maybe even those huge market crashes just don’t happen any more. Maybe this is part of how we end up getting defi to grow up and become a little more stable.


You seem like a smart person. Clearly able to understand the inner workings of liquidations on Terra, Solana, Abracadabra etc and build bots and resilient systems to take advantage of this, and I’m sure you’ve cleared a significant profit in doing so. Yet you seem to be cherry picking facts and arguments to drive a narrative that would maintain the status quo.

Unfortunately we don’t believe the status quo is good enough, so if that’s the case, we may not be able to see eye-to-eye on this one, and we’ll have to leave it up to the community to decide if they want to take part in liquidations, or leave it all for the bots.

3 Likes

We’re not simply talking about a carbon copy of the system. None of these parameters are defined in the proposal, and nothing is set in stone. This is an opportunity to learn from a pioneering system and make adjustments where we can. Borrowing against stable assets is the most obvious candidate for that as the economics are so different. Equally, I personally feel that the 1% “cranker” fee is extortionate, and not in-line with the effort required. This should be capped at something much more reasonable and the benefits returned to the market.

Ok, so lets get to some hard numbers. What is a appropriate cranker fee? It needs to account for tx cost and infrastructure cost of running a cranker. We have no idea how gas efficient this new contract will be but I think its safe to say that it will cost more than a uniswap swap to call liquidation which needs to calculate bidders in the queue.

A uniswap tx on eth currently costs $98.89, so right off the bat, we can safely assume a cranker won’t call liquidate on a 10k loan because the 1% fee wouldn’t cover their tx cost alone. During market meltdowns, fees easily 5-10x from the current prices, so we are talking about a worst case where crankers won’t call liquidate on 50k-100k loans because they lose money on tx fees and the queue will sit unused.

Secondly I do wish you’d spend a second fact-checking before telling myself and my teammates how our system works. The fee is 0.5% when you use KUJI as the fee token.

Kujira charges 1% to use the UI, and .5% if you buy KUJI. So its a 1% fee and we don’t need to keep discussing this.

You’re kind of splitting hairs here. It was 30%, adjusted to 15 as a stop-gap to stop the bleeding before the queue was brought in. You know this just as well as I do and are being deliberately misleading in your argument. Either way, 7.9 is less than either 30 or 15.

I’m not splitting hair, the liquidation queue didn’t bring the premium down from 30% to 7.9%, it bought it down from 15% to 7.9%. There is no need for hyperbole because the second number is good enough.

Again, you’re being (I believe - you seem like a fundamentally smart person) deliberately selective and misleading in your argument. When the pools run out of funds, as clearly stated above , you can take your bot and you’re able to execute whichever strategy works best for you. Put another way, When the pools run low, the system no longer relies on a democratic approach, and defaults to the existing and well tested mechanism that favours the few with bots over the many . This is very deliberate mechanism to protect against insolvency. In normal operation, we have a much more democratic and decentralized solution.

This is extremely naive. Let me reframe this argument from a protocol risk and liquidator incentives perspective. Liquidations don’t happen everyday like arbitrage but obviously they happen often enough for liquidators to put in the manhours to create and maintain liquidation bots and associated infrastructure because you can’t rely on public infrastructure during market meltdowns.

What you are suggesting is that we can switch to a liquidation queue which will account for the vast majority of liquidations and then, when the queue is empty and the protocol is at most risk, the liquidator bots can take over. Lets ignore the fact that we don’t know if flash loans will work with this liquidation queue that someone is going to write and assume that it will for now.

From a liquidator’s perspective, if bot liquidations go from couple of times a month to maybe once a year or longer, they will move to other platform that better align the incentives. Even if they run liquidators for abracadabra, it would be a distant priority and not something that is probably well maintained. Abracadabra won’t know if this worst case liquidators are up and ready to keep the platform safe until a market collapse when the queue runs empty and the protocol faces systemic risk if loans aren’t liquidated. This is when you will find out if anyone is actually liquidating with bots, and if they aren’t, the protocol will take on bad debt at best, or face collapse at worst.

Once more. I struggle to believe that you don’t understand the knock-on effects of this. In a downturn, someone will always take on that loss. If your bot is market selling in the same block, you’re just passing that onto someone else. Is that a fair system? Whichever way you cut it, immediately selling those assets contributes to sell pressure, making the situation worse. It sounds a lot like you want to keep the power in the hands of the few, who are going to take all the profits and dump all the costs on everyone else when you market sell.

There’s a macro economic situation here, and one that is (probably) unique to defi. When ever in history has collateral been able to be sold, so routinely, and at market rate, in the same 10 seconds that it is taken from the borrower?!

There’s more to these crashes than just the assets bought and sold from a specific lending platform. If you haven’t got bots market-selling the millions of dollars of assets during a dip in price, then maybe the leveraged positions on Binance don’t got called, and in turn maybe more loans on Abracadabra don’t go bad, and maybe folks don’t sell their “moonshot” assets to repay other leveraged positions, and then maybe even those huge market crashes just don’t happen any more. Maybe this is part of how we end up getting defi to grow up and become a little more stable.

This talking point is actually insane. You are suggesting that liquidators in OVER-COLLATERALIZED protocols are causing liquidation cascades when you can 10-100x leverage in CEX. Do you understand that oracles take cex prices into account and prices are weighted by volume? A liquidator market selling 1m USD of eth will not even move the price a fraction of a cent when 10s of billions of liquidations are happening in the market.

I would suggest that instead of thinking you can change the macro economic outlook of a market collapse, you focus of protocol solvency.

2 Likes

Hi There! I want to preface this comment in that I just recently created an account just specifically to comment on this proposal as I was completely taken aback by how dangerous this is and to highlight some of the points made above.

  1. Currently the liquidation fee is between 5%-12.5% depending on cauldron. This is far from outrageous and I believe 3% is given BACK to spell holders!! That means everyone who participates is fairly compensated JUST FOR PARTICIPATING. No other requirements are met. No ui, no nothing. Just straight value into spell.

  2. Most activity currently exists on Ethereum with the most cauldrons. Gas fees for a crank are what? $100+? This would de-incentivize liquidators as someone above has said. Everyone looks at the liquidators as the bad guy…but they are the only thing standing between YOU and depegged MIM. How devastating would MIM depegging be to the protocol?

  3. Liquidations on ethereum exceed $40M+ on a single user position Are we to have reserves to cover this? What happens to the price of MIM if this slips by? Anyone who reads this please look at this post from oxMerlin and Dani and curve! https://twitter.com/CurveFinance/status/1460628909272272904 this was an example of the current system holding out. If this had slid through…abracadabra would not be what it is today. I believe the OP’s proposal completely unnecessarily destabilizes the protocol detrimentally

  4. I don’t want to diminish the OP’s product, its hard to build in this space. However, their product has been running for 6 weeks from what I understand someone said above? That’s far from market tested. Here’s the thing, we know the current system works, most lending protocols use something similar, Compound, Aave, Cream etc… Are you willing to risk ALL your assets to try this out? What happens when the +$40M goes unliquidated?

  5. Honestly, OP’s software stands to gain the most. 1% on $40M for a UI ($400K profit…IF it gets liquidated)? Again, how is this putting money in the hands of the user. Currently, buybacks have been TREMENDOUS for the growth of spell which occur because of liquidations?

  6. The current system allows ANYONE with a keyboard to write a bot, they have unlimited access to capital, and it’s a fair market economy where anyone can participate and serve the purpose of keeping the protocol safe. Anyone can put in the time to learn and build a bot and compete. You don’t need a single cent. Just your brain. How is that not democratic? Sure it requires hard work, but what about the case which REQUIRES capital in order to even participate like the OP is suggesting? Flashloans are what make defi so capitally efficient.

(as an aside, I really didn’t appreciate that the OP doxxed one of the commenters above almost instantly. That also really turned me off)

3 Likes

Thanks for engaging in an excellent, facts based discussion on a complex subject where smart people can reasonably come to different conclusions and opinions. There is not an obvious answer to the liquidation problem and many smart people have researched and discussed in depth what the “best” implementation is-- and this conversation is evidence that there is still a lot of different thoughts on the matter. The kujira team seem to have come up with a clever idea and I applaud them for innovating on a difficult problem. This subject involves balancing many interests and it is far from obvious what the “fair” solution is for any protocol… or what “fair” even means in DeFi.

Thanks everyone for giving some great responses to the concerns I have had. I still oppose this proposal, but I have much more respect for the team now that we’ve gotten to the “meaty” part of this discussion and we’re able to engage civilly, respectfully, and with knowledge and facts. Thanks also to the other forum members for reiterating and helping clarify some of my main concerns.

I have a few more points to raise and then I might step back from this conversation.

I think some of the confusion is coming from talking past each other on the facts of how liquidation works on Abracadabra. It actually works very differently on Abracadabra than other protocols, so some of the broad statements here are inaccurate and causing significant confusion.

Let me get into the nitty-gritty. Apologies in advance to the non-programmers for bringing in code.

Right now, Abracadabra actually awards liquidators very little, especially compared to other protocols where the liquidators receive 10% or more. For example, the $40M cvxTricrypto liquidation everyone talks about actually only earned the liquidator about $40,000 (0.1%). I know that seems crazy, but check the logs of that transaction and what goes into bentobox. It’s true.

The reason why is because on Abracadabra, unlike on many other protocols, there is a difference between the “liquidation fee” of the cauldron and the MCR (maximum collateral ratio). For example, on cvxTricrypto, the MCR is 90%, so a $1M collateral position can only borrow $900,000. But the liquidation fee is 4%. The liquidation fee is what matters for liquidations and is actually the highest percent of the borrow amount the liquidator can earn. So in this case, the most the liquidator could earn is $36,000. For multiple reasons, the actual amount is much less. By the way, during a crash gas can easily be 300 gwei+ (1,000 gwei is not unheard of) and the liquidation linked above took 1.5M gas. So with transaction costs in the thousands of dollars, it seems barely worth it to liquidate positions under a few hundred thousand dollars under the current scheme.

The relevant part of the liquidation function is as follows:

if (!_isSolvent(user, _exchangeRate)) {
                uint256 borrowPart;
                {
                    uint256 availableBorrowPart = userBorrowPart[user];
                    borrowPart = maxBorrowParts[i] > availableBorrowPart ? availableBorrowPart : maxBorrowParts[i];
                    userBorrowPart[user] = availableBorrowPart.sub(borrowPart);
                }
                uint256 borrowAmount = _totalBorrow.toElastic(borrowPart, false);
                uint256 collateralShare =
                    bentoBoxTotals.toBase(
                        borrowAmount.mul(LIQUIDATION_MULTIPLIER).mul(_exchangeRate) /
                            (LIQUIDATION_MULTIPLIER_PRECISION * EXCHANGE_RATE_PRECISION),
                        false
                    );
            }

Essentially, borrowAmount ends up being what the liquidator has to pay back to the protocol to seize collateralShare. The important line I want to emphasize is:

uint256 collateralShare =
                    bentoBoxTotals.toBase(
                        borrowAmount.mul(LIQUIDATION_MULTIPLIER).mul(_exchangeRate) /
                            (LIQUIDATION_MULTIPLIER_PRECISION * EXCHANGE_RATE_PRECISION),
                        false
                    );

So a liquidator liquidating the $1M position ($900,000 borrow) with a 4% LIQUIDATION_MULTIPLIER actually only gets to seize 1.04 * $900,000 worth of collateral value. She also ends up having to pay in excess of $900,000 because the protocol charges her some fees that get redistributed to SPELL holders. In reality, after the protocol takes a cut and due to some math things going on in the contract (and exchange slippage for large liquidations like the $40M one), the liquidator normally takes home much less.

It was suggested:

If I have a $1m pot, and a bot that’s liquidating at a 25% premium, and say $5m of loans become at risk over the course of a few blocks (and that’s a small event), then each block the bot buys the collateral and market-sells it to lock in the 25% profit, then in the space of 5 blocks - the bot owner is cleaning up 1 * 1.25 * 1.25 * 1.25 * 1.25 * 1.25.
The bot owner now has $3m where earlier that day they had $1m.

But it just isn’t how it works on Abracadabra. It might be true on other protocols (though the math seems wrong), but not here. The liquidator would probably earn something like 2-4% on the total $5M, which comes out to maybe 5-10% of the $3m being claimed. And by the way, the average liquidation amount is something like $5,000 according to the dashboard, so we are talking about very small fees.

I’m not saying the status quo is optimal. But what I am saying is that the premise of the proposal seems off by a factor of 100x. Bots are making so much less than what is being suggested that I personally do not believe it is worth the risk of changing a central component of a $3B+ protocol. But I admit that other people can reasonably disagree here.

Next topic: do bots selling liquidated collateral push the market down further? For liquid markets on ETH mainnet (so basically every cauldron except SPELL/sSPELL, ALCX, ALGD, and maybe wsOHM), my research suggests no. Very sophisticated funds arbitrage between centralized exchanges and Uniswap/Sushiswap/Curve with only 1 block of delay. The liquidity depth on these centralized exchanges dwarfs on-chain liquidity. Even if the price of liquidated collateral falls on Uniswap by multiple percent, the next block it will immediately be arbed back to the fair market price. The tens of billions of dollars of leverage in BTC that institutional investors take on is a much larger systematic risk.

Moving on:

The simple fact is that during a market downturn, some people will experience loss. Whichever way you cut it, if you lock in your “profit” at the same moment that you buy liquidated collateral, somebody else has to buy it. It’s either you getting rekt or them.

I don’t follow this argument. If Alice liquidates $1M of collateral and immediately sells it at market price, her counterparty gets the fair market price for the collateral (actually better than fair on a DEX because of slippage improving the price above market), so they should be happy. Only the liquidated borrower gets rekt.

I strongly oppose encouraging less-informed investors to try to catch falling knives by making what are essentially capital-backed, non-interest earning limit orders in advance. If Country X decided tomorrow to ban all crypto and ETH fell to $2,000, the people getting rekt under the queue system are the folks who thought it was smart to stake in the queue to buy collateral at a 5% discount. These people have stale limit orders that don’t adjust to market conditions unless they constantly manage their positions. Do they even get notified their order was executed like they would on an exchange? Under the Abracadabra liquidation system, it doesn’t seem anyone gets rekt (except for the liquidated borrowers, of course).

Finally:

The current system allows ANYONE with a keyboard to write a bot, they have unlimited access to capital, and it’s a fair market economy where anyone can participate and serve the purpose of keeping the protocol safe. Anyone can put in the time to learn and build a bot and compete. You don’t need a single cent. Just your brain. How is that not democratic? Sure it requires hard work, but what about the case which REQUIRES capital in order to even participate like the OP is suggesting? Flashloans are what make defi so capitally efficient.

I couldn’t agree more. This is DeFi. This is a democratic system. This is smart money and smart investing. Centralizing liquidations through a third party system that wants a cut of the profit is, in my opinion, the exact opposite from what we should be promoting as DeFi advocates.

6 Likes