Skip to content
MeridxBSC testnet
    7     %  x              e       $           dm3                    $              x  $ 6m         d      5  %                 2           7 x     3  47       4  3      05   r       $      6         x 4i52x x m3      x9   x         5x   2        6    6  9 m               1x 1      5   e      9        m                                5  % $    3         1         % 30    i     7             0  0                       5  7   7   4  1      1 x%      1 d     9 i        4 x    er 3    0 x            7                      i                              3 2    4         4      2        2    r  9  6                 %    2       7               8 e                    %7 3    d          $    0           d  3                                                            i049xx68d5ex0x70e7                                                               $    6        m  7x  d xr     1 8 d                                        1             i     5        88                                                     496964m985627x5$5e                                                     6   $x         e     3      7 %7  $    1     0                                   6               d 0    %  2 2                                                              xm1m168r2%45                                                                                                         24i            e8r                                                   5     i4$    6   1 1       8 e   m  3        44r                     e     i        7     r    1d     73 $8      r                                                            073x03x6$42x                                                                                                         e2$            xm8                                                               9            7       4    $                                     7  3          %e        %     x    e                                                              %62$4$i788x6                                                                                                         i84            82m                                                    4 i              88             8 8 86      5 7 x                             % 3        x   $   6 %      % 2  4     6                                                       d847m36$5x51                                                                                                         m7r            7id                                                                      4          r6  d       8 8    5                    i     x    4mx  6 x9         1    5     78                                                              9ei52075rix%                                                                                                         re5            552                                                   3   2         8  1 91           9     x        x                           5    6    7  m         4       $     3   0 5                                                       9$x65009e360                                                                                                         i3r            98$                                                       8   91            r    6        e        d                        x        d 5    x              5 9                                                                      r92$47%32712                                                                                                         729            0$1                                                        5  1x 90 6    x        5  d       00     x                    1r r    9  4  x   4           2    3     mx 0    %i                                                          0$x9$ei5                                                                                                             %03        xr2                                                       5        i               9       8                $7                 x 6 x  x        4   8 e  2 5 9 x d r       9                                                              i43ddi                                                                                                               mrr      5e5                                                                8            8        e      2        r     e            1  94 5 em        m   $   i              9   $ 5   32                                                          1298                                                                                                                 2mm    555                                                       x   x   %     1     4      1    3    7$           5   9          $ %   % x  r 9      6     4 9      x1   rx6         4                                                             d3                                                                                                                   ie%  15x                                                              7    5    $                 x xx     x  $       2                   x x        e        7   35 5  0            x                                                            9972                                                                       r       1         6     d  9  r                       $ 8  i1           6   19   %  9  x x x x d                                                                      $m                                                               m  5     x   m       x1      i    5 2 x8    $         4       1  5 7             2                                  e                8    e       4  x                x                   m  4                 00         m     3 4     9                                       e703im6066m        x7xe1dd8748        6m155%rm107                                        x     i   9  m       3  7     5           1 6   8                 1 r           d   4               8   4     5   e                                    x3xmd48i788        6d2372x6i6i        r1xiri$4m61                                                       6xe  %   i                    d           6     x  4     $ d      4   $          i           9                                          9%       99        i3       0m        %4       %d                                   m14  7 $ 1       4     8 x  5               i     6                7 7   d           3                  8e             x                                    6r       ed        %x       2r        19       31                                       1    de 3  1                 d m     x                 8                    3    d0   0   9  0     0           r d                                      08       3m        d0       xx        xm       98                                   m           4   0           x  1  $       4                   2         %%     2 rx                            m  r                                         47       x2        e1       80        %7       x1                                    5     1     7  3      8         6 7                  6              d                      x     i       2         3                                       mx3d9277m4%        6mr391504x2        2e273x92x8$                                         % x4 2            i      i7$            x      $           r      x7        x x           0      r x    9      d 0                      2           9      9          1   1             r4    d7          d  x       6         74   x m0i GUARDIANNO OWNERNO SETTERS

Security

No owner. No setters. One Guardian.

Who holds a key

Only the Flap Guardian. Everything else is open to everyone on equal terms.

Flap Guardian0x76Fa…6950
  • Owner: none
  • Setters: none
  • Platform payee fixed

What a rescue does to loans

Red gates

Each gate breaks one guard in the source. Its tests must fail.

64of 64 gates caught their break
Source 7020ce23852aaa19 matches this build
  1. G01commission is revenue x 6 / 200
  2. G02a loan is at most 30% of the collateral value
  3. G03outstanding principal stays under the pair cap
  4. G04the first reference is no higher than the listing price
  5. G05the reference rises at most 5% per daily close
  6. G06a repaid loan releases its share of the 24-hour window
  7. G07only the locked share of the pair counts
  8. G08the exit is measured behind pending tax and locked collateral
  9. G09defaults keep occupying the pair cap
  10. G10settle only strictly after due + grace
  11. G11a same-block pump does not raise the value
  12. G12vaultData must be empty
  13. G13buy tax must be 200 bps
  14. G14interest is charged by started hour
  15. G15repay stays open until the loan is settled
  16. G16only the Guardian can drain native
  17. G17the beacon belongs to the Guardian
  18. G18the listing price is lockedLP^2 / seeded^2
  19. G19reserves are oriented (token, quote)
  20. G20locked reserves are oriented (token, quote)
  21. G21a failed forward never reverts receive()
  22. G22borrow is non-reentrant
  23. G23only the Guardian can move tokens
  24. G24a quote rescue rebases the ledgers at once
  25. G25a shortfall is shared in proportion
  26. G26BNB attached to repay is not revenue
  27. G27only a PancakeSwap V2 pair is priced
  28. G28an overflowing listing price reads as unreadable
  29. G29interest is charged for at least a day
  30. G30one open loan per address
  31. G31a USDT vault refuses BNB on repay
  32. G32the excess over owed is refunded
  33. G33the window spans 24 clock hours
  34. G34a view previews exactly what a poke would store
  35. G35a launcher commission is shown
  36. G36quoteBorrow reads 0 below the minimum loan
  37. G37disarming the forward clears its target
  38. G38only the VaultPortal creates vaults
  39. G39one vault per token
  40. G40repay's schema input is msg.value
  41. G41the implementation cannot be initialized
  42. G42USDT is a supported quote
  43. G43a second default rebases what is left
  44. G44the settler gets 1% of the collateral
  45. G45the commission goes to the platform
  46. G46the schema text states the constants
  47. G47no dividend leg at launch
  48. G48a tax-free token is valued without sell tax
  49. G49the beacon refuses unsupported chains
  50. G50owedAt charges by started hour from the start
  51. G51only the trigger service may call trigger()
  52. G52only the pending request id is accepted
  53. G53the pending id is cleared before any work
  54. G54a dispatch needs at least the minimum loan of tax
  55. G55a sync for revenue needs at least the minimum loan waiting
  56. G56the daily close is due only 24 hours after the anchor
  57. G57a vault whose pair is not live is not synced for its clock
  58. G58the lap keeps the schedule reserve in hand
  59. G59the cursor resumes where the lap stopped
  60. G60an incomplete lap comes back at the active cadence
  61. G61kick waits for a pending request unless it is stale
  62. G62an unfunded tick goes idle instead of reverting
  63. G63the fee is read from the service at each slot
  64. G64a failed leg's reason is truncated

Self-check

Three independent review passes, then the authors' checklist.

Checklist
25 pass
2 not applicable, 1 with disclosure
Findings resolved
19
3 high, 6 medium, 10 low
Tests
204 unit
34 on a BNB Chain fork, 31 of them for the trigger
Open questions
4
for Flap; 6 points kept as designed
High3
Medium6
Low10

Not audited

Read the code before you trust it with money.

These contracts have not been audited. The self-check is by the authors. It is not an audit.