|
386 | 386 | - update scaling array state
|
387 | 387 | - increment reserveAuction.totalInterestEarned accumulator
|
388 | 388 | - BorrowerActions.drawDebt():
|
389 |
| - - SettlerActions._settleAuction(): |
390 |
| - - _removeAuction(): |
391 |
| - - decrement kicker locked accumulator, increment kicker claimable accumumlator |
392 |
| - - decrement auctions count accumulator |
393 |
| - - decrement auctions.totalBondEscrowed accumulator |
394 |
| - - update auction queue state |
395 | 389 | - Loans.update():
|
396 | 390 | - _upsert():
|
397 | 391 | - insert or update loan in loans array
|
398 | 392 | - remove():
|
399 | 393 | - remove loan from loans array
|
400 | 394 | - update borrower in address => borrower mapping
|
401 |
| - - decrement poolBalances.t0DebtInAuction accumulator |
402 | 395 | - increment poolBalances.pledgedCollateral accumulator
|
403 | 396 | - increment poolBalances.t0Debt accumulator
|
404 | 397 | - _updateInterestState():
|
|
416 | 409 |
|
417 | 410 | emit events:
|
418 | 411 | - BorrowerActions.drawDebt():
|
419 |
| - - SettlerActions._settleAuction(): |
420 |
| - - AuctionNFTSettle or AuctionSettle |
421 | 412 | - DrawDebt
|
422 | 413 | - PoolCommons.updateInterestRate():
|
423 | 414 | - UpdateInterestRate
|
|
435 | 426 | - update scaling array state
|
436 | 427 | - increment reserveAuction.totalInterestEarned accumulator
|
437 | 428 | - BorrowerActions.repayDebt():
|
438 |
| - - SettlerActions._settleAuction(): |
439 |
| - - _removeAuction(): |
440 |
| - - decrement kicker locked accumulator, increment kicker claimable accumumlator |
441 |
| - - decrement auctions count accumulator |
442 |
| - - decrement auctions.totalBondEscrowed accumulator |
443 |
| - - update auction queue state |
444 | 429 | - Loans.update():
|
445 | 430 | - _upsert():
|
446 | 431 | - insert or update loan in loans array
|
447 | 432 | - remove():
|
448 | 433 | - remove loan from loans array
|
449 | 434 | - update borrower in address => borrower mapping
|
450 | 435 | - decrement poolBalances.t0Debt accumulator
|
451 |
| - - decrement poolBalances.t0DebtInAuction accumulator |
452 | 436 | - decrement poolBalances.pledgedCollateral accumulator
|
453 | 437 | - _updateInterestState():
|
454 | 438 | - PoolCommons.updateInterestRate():
|
|
465 | 449 |
|
466 | 450 | emit events:
|
467 | 451 | - BorrowerActions.repayDebt():
|
468 |
| - - SettlerActions._settleAuction: |
469 |
| - - AuctionNFTSettle or AuctionSettle |
470 | 452 | - RepayDebt
|
471 | 453 | - PoolCommons.updateInterestRate():
|
472 | 454 | - UpdateInterestRate
|
|
534 | 516 | - increment reserveAuction.totalInterestEarned accumulator
|
535 | 517 | - TakerActions.take():
|
536 | 518 | - _take():
|
537 |
| - - _prepareTake(): |
538 |
| - - update liquidation.alreadyTaken state |
539 | 519 | - _rewardTake():
|
540 | 520 | - update liquidation bond size accumulator
|
541 | 521 | - update kicker's locked balance accumulator
|
|
567 | 547 | - insufficient collateral InsufficientCollateral()
|
568 | 548 | - _prepareTake():
|
569 | 549 | - loan is not in auction NoAuction()
|
570 |
| - - in 1 hour cool down period TakeNotPastCooldown() |
571 | 550 | - _takeLoan():
|
572 | 551 | - borrower debt less than pool min debt AmountLTMinDebt()
|
573 | 552 |
|
|
591 | 570 | - increment reserveAuction.totalInterestEarned accumulator
|
592 | 571 | - TakerActions.bucketTake():
|
593 | 572 | - _takeBucket():
|
594 |
| - - _prepareTake(): |
595 |
| - - update liquidation.alreadyTaken state |
596 | 573 | - _rewardBucketTake():
|
597 | 574 | - Buckets.addLenderLP:
|
598 | 575 | - increment taker lender.lps accumulator and lender.depositTime state
|
|
630 | 607 | - insufficient collateral InsufficientCollateral()
|
631 | 608 | - _prepareTake():
|
632 | 609 | - loan is not in auction NoAuction()
|
633 |
| - - in 1 hour cool down period TakeNotPastCooldown() |
634 | 610 | - _takeLoan():
|
635 | 611 | - borrower debt less than pool min debt AmountLTMinDebt()
|
636 | 612 |
|
|
0 commit comments