Commit ca2245c
committed
fix: settle ARM withdrawal yield accounting at claim for escrow-generation ARMs
The Ethena and multi-asset ARMs escrow shares at requestRedeem (they stay
in totalSupply and totalAssets is unchanged) and only reduce totalAssets
when claimRedeem pays out. Booking totalWithdrawals into totalYield at
request time therefore created a phantom +amount yield at request and a
matching -amount at claim — seen as negative daily yield on the sUSDe ARM
on 2026-07-27 (10.0042 USDe requested 7/26 16:40, claimed 7/27 01:55).
Legacy ARMs (Lido/EtherFi/OS) deduct queued assets from totalAssets at
request time, so they keep request-time accounting.1 parent 5c8a0a5 commit ca2245c
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
618 | 619 | | |
619 | 620 | | |
620 | 621 | | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
621 | 628 | | |
622 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
623 | 632 | | |
624 | 633 | | |
625 | 634 | | |
| |||
829 | 838 | | |
830 | 839 | | |
831 | 840 | | |
| 841 | + | |
832 | 842 | | |
833 | 843 | | |
834 | 844 | | |
| |||
0 commit comments