generated from bgd-labs/bgd-forge-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add arb and base tests and reports
- Loading branch information
Showing
5 changed files
with
235 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# Capo Report | ||
|
||
| Capped rsETH / ETH / USD | ETH / USD | Diff | Date | 14-day growth in yearly % | | ||
| ------------------------ | ------------- | ----- | ----------- | ------------------------- | | ||
| 3762.08159601 | 3649.8261 | 3.03% | 03 Dec 2024 | 3.31% | | ||
| 3787.08964376 | 3673.9106 | 3.03% | 04 Dec 2024 | 2.52% | | ||
| 3948.06003665 | 3829.8761 | 3.04% | 05 Dec 2024 | 2.56% | | ||
| 4022.38798549 | 3901.74 | 3.05% | 06 Dec 2024 | 2.63% | | ||
| 4119.61954506 | 3995.82 | 3.05% | 07 Dec 2024 | 2.67% | | ||
| 4117.18032773 | 3993.2088 | 3.06% | 08 Dec 2024 | 2.72% | | ||
| 4053.41628336 | 3931.364741 | 3.06% | 09 Dec 2024 | 2.61% | | ||
| 3787.5688837 | 3672.70419946 | 3.08% | 10 Dec 2024 | 2.22% | | ||
| 3781.06909118 | 3665.09 | 3.12% | 11 Dec 2024 | 2.94% | | ||
| 4037.77523628 | 3913.68391722 | 3.12% | 12 Dec 2024 | 2.98% | | ||
| 4043.24942011 | 3918.74 | 3.13% | 13 Dec 2024 | 3.02% | | ||
| 4052.59224122 | 3927.56642949 | 3.13% | 14 Dec 2024 | 3.05% | | ||
| 4009.87410119 | 3885.94 | 3.14% | 15 Dec 2024 | 3.11% | | ||
| 4097.03400491 | 3970.18598897 | 3.14% | 16 Dec 2024 | 3.13% | | ||
| 4148.6656306 | 4019.77 | 3.16% | 17 Dec 2024 | 3.28% | | ||
| 3968.22777452 | 3844.69773474 | 3.16% | 18 Dec 2024 | 3.32% | | ||
| 3788.13426737 | 3669.9991 | 3.17% | 19 Dec 2024 | 3.34% | | ||
| 3495.27813727 | 3386.06 | 3.17% | 20 Dec 2024 | 3.34% | | ||
| 3628.34740586 | 3514.75 | 3.18% | 21 Dec 2024 | 3.35% | | ||
| 3449.32860468 | 3341.0899684 | 3.19% | 22 Dec 2024 | 3.39% | | ||
| 3402.15136775 | 3294.6 | 3.21% | 23 Dec 2024 | 4.01% | | ||
| 3524.65873714 | 3413.03 | 3.22% | 24 Dec 2024 | 3.59% | | ||
| 3605.89145456 | 3491.47 | 3.22% | 25 Dec 2024 | 2.83% | | ||
| 3543.49717024 | 3430.86 | 3.23% | 26 Dec 2024 | 2.82% | | ||
| 3488.65000085 | 3377.56206632 | 3.24% | 27 Dec 2024 | 2.81% | | ||
| 3441.85909798 | 3332.07303331 | 3.24% | 28 Dec 2024 | 2.81% | | ||
| 3496.66753291 | 3384.9421 | 3.25% | 29 Dec 2024 | 2.80% | | ||
| 3529.53460743 | 3416.11104173 | 3.27% | 30 Dec 2024 | 3.15% | | ||
| 3457.86945024 | 3346.56 | 3.27% | 31 Dec 2024 | 3.01% | | ||
| 3449.11131522 | 3337.88271531 | 3.28% | 01 Jan 2025 | 3.00% | | ||
| 3521.04604179 | 3407.297484 | 3.28% | 02 Jan 2025 | 3.00% | | ||
| 3550.57365848 | 3435.66075019 | 3.29% | 03 Jan 2025 | 3.00% | | ||
| 3725.43703797 | 3604.65256826 | 3.30% | 04 Jan 2025 | 2.99% | | ||
| 3754.26504409 | 3632.32815175 | 3.30% | 05 Jan 2025 | 2.95% | | ||
| 3773.11166704 | 3650.1875 | 3.31% | 06 Jan 2025 | 2.59% | | ||
| 3795.62521184 | 3671.4594 | 3.33% | 07 Jan 2025 | 2.80% | | ||
| 3450.57719076 | 3337.50168654 | 3.33% | 08 Jan 2025 | 2.78% | | ||
| 3408.18716149 | 3296.300148 | 3.34% | 09 Jan 2025 | 2.79% | | ||
| 3420.7230706 | 3308.1965 | 3.34% | 10 Jan 2025 | 2.82% | | ||
| 3338.90398062 | 3228.88 | 3.35% | 11 Jan 2025 | 2.83% | | ||
| 3377.30952531 | 3265.83 | 3.36% | 12 Jan 2025 | 2.83% | | ||
| 3308.86006756 | 3199.28 | 3.37% | 13 Jan 2025 | 2.63% | | ||
| 3285.59448025 | 3176.58550749 | 3.37% | 14 Jan 2025 | 2.65% | | ||
| 3344.32641264 | 3233.165101 | 3.38% | 15 Jan 2025 | 2.66% | | ||
| 3499.46426859 | 3382.942 | 3.39% | 16 Jan 2025 | 2.66% | | ||
| 3496.64803429 | 3380.01 | 3.39% | 17 Jan 2025 | 2.66% | | ||
| 3370.91130134 | 3258.26629162 | 3.40% | 18 Jan 2025 | 2.67% | | ||
| 3354.25165483 | 3241.9596 | 3.40% | 19 Jan 2025 | 2.68% | | ||
| 3519.73523975 | 3401.6773 | 3.41% | 20 Jan 2025 | 2.58% | | ||
| 3368.79431828 | 3255.55598621 | 3.42% | 21 Jan 2025 | 2.42% | | ||
| 3399.88478281 | 3284.6821 | 3.45% | 22 Jan 2025 | 2.99% | | ||
| 3334.20714513 | 3221.02967296 | 3.45% | 23 Jan 2025 | 3.00% | | ||
| 3514.68361358 | 3395.18023464 | 3.46% | 24 Jan 2025 | 2.97% | | ||
| 3410.76488978 | 3294.509689 | 3.47% | 25 Jan 2025 | 3.05% | | ||
| 3450.75915819 | 3332.94090526 | 3.47% | 26 Jan 2025 | 3.05% | | ||
| 3167.47148402 | 3059.15253256 | 3.48% | 27 Jan 2025 | 2.91% | | ||
| 3306.55363365 | 3193.2758777 | 3.49% | 28 Jan 2025 | 2.91% | | ||
| 3255.86970295 | 3144.14 | 3.49% | 29 Jan 2025 | 2.90% | | ||
| 3324.35467376 | 3209.87 | 3.50% | 30 Jan 2025 | 3.07% | | ||
| 3381.27061919 | 3264.63 | 3.51% | 31 Jan 2025 | 3.06% | | ||
| 3349.44926125 | 3233.71682713 | 3.52% | 01 Feb 2025 | 3.05% | | ||
| 3214.56144644 | 3103.30705387 | 3.52% | 02 Feb 2025 | 3.03% | | ||
| 2674.03504093 | 2581.34 | 3.53% | 03 Feb 2025 | 3.01% | | ||
| 2830.51555553 | 2731.63 | 3.56% | 04 Feb 2025 | 3.55% | | ||
| 2876.52504655 | 2775.84 | 3.56% | 05 Feb 2025 | 3.00% | | ||
| 2928.38931124 | 2825.39 | 3.58% | 06 Feb 2025 | 3.29% | | ||
| 2845.18418278 | 2744.93846296 | 3.59% | 07 Feb 2025 | 3.30% | | ||
| 2710.63435287 | 2614.96 | 3.59% | 08 Feb 2025 | 3.24% | | ||
| 2762.53473197 | 2664.86868573 | 3.60% | 09 Feb 2025 | 3.24% | | ||
| 2745.97117979 | 2648.636896 | 3.61% | 10 Feb 2025 | 3.34% | | ||
| 2801.15948318 | 2701.71 | 3.61% | 11 Feb 2025 | 3.33% | | ||
| 2729.72321815 | 2632.6539 | 3.62% | 12 Feb 2025 | 3.33% | | ||
| 2757.36766029 | 2659.16212285 | 3.63% | 13 Feb 2025 | 3.15% | | ||
| 2784.65486721 | 2685.27775 | 3.63% | 14 Feb 2025 | 3.19% | | ||
| 2808.02142881 | 2707.64691962 | 3.64% | 15 Feb 2025 | 3.20% | | ||
| 2809.80399373 | 2709.21515 | 3.65% | 16 Feb 2025 | 3.19% | | ||
| 2870.80721831 | 2767.37039577 | 3.67% | 17 Feb 2025 | 3.67% | | ||
|
||
- 14-day growth is calculated as an annualized percentage relative to the value of the rate 14 days prior. | ||
|
||
| Max Yearly % | Max Day-to-day yearly % | Max 14-day yearly % | | ||
| ------------ | ----------------------- | ------------------- | | ||
| 9.83% | 13.62% | 4.01% | | ||
|
||
- Max day-to-day yearly % indicates the maximum growth between two emissions as an annualized percentage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# Capo Report | ||
|
||
| Capped rsETH / ETH / USD | ETH / USD | Diff | Date | 14-day growth in yearly % | | ||
| ------------------------ | ------------- | ----- | ----------- | ------------------------- | | ||
| 3832.06806435 | 3717.9202 | 3.02% | 02 Dec 2024 | 3.29% | | ||
| 3753.59208486 | 3641.58990454 | 3.03% | 03 Dec 2024 | 3.26% | | ||
| 3789.787315 | 3676.52765 | 3.03% | 04 Dec 2024 | 2.49% | | ||
| 3983.18740664 | 3863.715208 | 3.05% | 05 Dec 2024 | 2.68% | | ||
| 4020.48029067 | 3899.66 | 3.05% | 06 Dec 2024 | 2.75% | | ||
| 4117.90071929 | 3993.9075 | 3.06% | 07 Dec 2024 | 2.79% | | ||
| 4106.45240146 | 3982.8039 | 3.06% | 08 Dec 2024 | 2.69% | | ||
| 4073.7111408 | 3950.16868963 | 3.08% | 09 Dec 2024 | 3.15% | | ||
| 3845.89046954 | 3728.28 | 3.11% | 10 Dec 2024 | 2.86% | | ||
| 3792.65269637 | 3676.31829405 | 3.12% | 11 Dec 2024 | 2.89% | | ||
| 4059.61269304 | 3934.85025222 | 3.12% | 12 Dec 2024 | 2.94% | | ||
| 4023.1179901 | 3899.2285052 | 3.13% | 13 Dec 2024 | 2.99% | | ||
| 4047.50518328 | 3922.63631148 | 3.13% | 14 Dec 2024 | 3.02% | | ||
| 3981.93580068 | 3858.86519497 | 3.14% | 15 Dec 2024 | 3.07% | | ||
| 4075.97126956 | 3949.77537566 | 3.14% | 16 Dec 2024 | 3.09% | | ||
| 4138.27273177 | 4009.7 | 3.16% | 17 Dec 2024 | 3.25% | | ||
| 3996.22147747 | 3871.82 | 3.16% | 18 Dec 2024 | 3.28% | | ||
| 3809.2744358 | 3690.48 | 3.17% | 19 Dec 2024 | 3.14% | | ||
| 3295.80690129 | 3192.82170914 | 3.17% | 20 Dec 2024 | 3.16% | | ||
| 3572.12516098 | 3460.28797829 | 3.18% | 21 Dec 2024 | 3.16% | | ||
| 3495.72452277 | 3386.03 | 3.19% | 22 Dec 2024 | 3.35% | | ||
| 3441.03033904 | 3332.2499 | 3.21% | 23 Dec 2024 | 3.39% | | ||
| 3512.48624825 | 3401.24302348 | 3.22% | 24 Dec 2024 | 2.88% | | ||
| 3593.05684443 | 3479.04265525 | 3.22% | 25 Dec 2024 | 2.79% | | ||
| 3457.36156325 | 3347.46238618 | 3.23% | 26 Dec 2024 | 2.78% | | ||
| 3495.56642232 | 3384.25825046 | 3.24% | 27 Dec 2024 | 2.77% | | ||
| 3498.98450943 | 3387.37629751 | 3.24% | 28 Dec 2024 | 2.76% | | ||
| 3477.66258737 | 3366.5444 | 3.25% | 29 Dec 2024 | 2.76% | | ||
| 3418.41082778 | 3308.5582868 | 3.27% | 30 Dec 2024 | 3.10% | | ||
| 3525.93499694 | 3412.4345043 | 3.27% | 31 Dec 2024 | 2.96% | | ||
| 3458.58540339 | 3347.05127853 | 3.28% | 01 Jan 2025 | 2.95% | | ||
| 3595.64495538 | 3479.486455 | 3.28% | 02 Jan 2025 | 2.96% | | ||
| 3705.69254128 | 3585.75927187 | 3.29% | 03 Jan 2025 | 2.95% | | ||
| 3744.00154364 | 3622.61518375 | 3.30% | 04 Jan 2025 | 2.94% | | ||
| 3744.75794936 | 3623.12984331 | 3.30% | 05 Jan 2025 | 2.91% | | ||
| 3813.73698295 | 3689.48928415 | 3.31% | 06 Jan 2025 | 2.55% | | ||
| 3544.21134761 | 3428.270006 | 3.33% | 07 Jan 2025 | 2.75% | | ||
| 3414.89623849 | 3302.99 | 3.33% | 08 Jan 2025 | 2.74% | | ||
| 3341.69113177 | 3231.98710936 | 3.34% | 09 Jan 2025 | 2.75% | | ||
| 3403.25701057 | 3291.30499564 | 3.34% | 10 Jan 2025 | 2.78% | | ||
| 3397.93601147 | 3285.9668 | 3.35% | 11 Jan 2025 | 2.79% | | ||
| 3390.80023616 | 3278.8754043 | 3.36% | 12 Jan 2025 | 2.79% | | ||
| 3208.22840849 | 3101.98097627 | 3.37% | 13 Jan 2025 | 2.59% | | ||
| 3321.99738093 | 3211.78063806 | 3.37% | 14 Jan 2025 | 2.61% | | ||
| 3536.64370269 | 3419.09 | 3.38% | 15 Jan 2025 | 2.62% | | ||
| 3403.1610434 | 3289.8454 | 3.39% | 16 Jan 2025 | 2.62% | | ||
| 3598.01712328 | 3477.99771027 | 3.39% | 17 Jan 2025 | 2.62% | | ||
| 3429.67883149 | 3315.07 | 3.40% | 18 Jan 2025 | 2.63% | | ||
| 3318.15617737 | 3207.07250991 | 3.40% | 20 Jan 2025 | 2.64% | | ||
| 3364.44650817 | 3251.59721807 | 3.41% | 21 Jan 2025 | 2.54% | | ||
| 3467.03001753 | 3350.4896 | 3.42% | 22 Jan 2025 | 2.38% | | ||
| 3366.74917774 | 3252.66927139 | 3.45% | 23 Jan 2025 | 2.95% | | ||
| 3408.77875656 | 3293.07 | 3.45% | 24 Jan 2025 | 2.95% | | ||
| 3414.7108238 | 3298.60663736 | 3.46% | 25 Jan 2025 | 2.92% | | ||
| 3437.87939289 | 3320.7 | 3.47% | 26 Jan 2025 | 3.00% | | ||
| 3304.67038708 | 3191.84 | 3.47% | 27 Jan 2025 | 3.00% | | ||
| 3327.66721175 | 3213.87 | 3.48% | 28 Jan 2025 | 2.86% | | ||
| 3245.09452083 | 3133.73458326 | 3.49% | 29 Jan 2025 | 3.01% | | ||
| 3304.01019733 | 3190.22615 | 3.50% | 30 Jan 2025 | 3.17% | | ||
| 3339.41682697 | 3224.22 | 3.51% | 31 Jan 2025 | 3.17% | | ||
| 0 | 0 | NaN% | 01 Feb 2025 | 3.16% | | ||
| 0 | 0 | NaN% | 02 Feb 2025 | 2.70% | | ||
| 0 | 0 | NaN% | 03 Feb 2025 | 3.14% | | ||
| 3332.23174566 | 3217.4758 | 3.50% | 04 Feb 2025 | 2.37% | | ||
| 0 | 0 | NaN% | 05 Feb 2025 | 3.68% | | ||
| 2938.58802746 | 2835.23 | 3.58% | 06 Feb 2025 | 3.41% | | ||
| 3332.23174566 | 3217.4758 | 3.50% | 07 Feb 2025 | 1.30% | | ||
| 3335.19458539 | 3217.4758 | 3.59% | 08 Feb 2025 | 3.43% | | ||
| 2760.05850215 | 2662.48 | 3.60% | 09 Feb 2025 | 3.36% | | ||
| 3335.71424298 | 3217.4758 | 3.61% | 10 Feb 2025 | 3.45% | | ||
| 2803.37825622 | 2703.85 | 3.61% | 11 Feb 2025 | 3.46% | | ||
| 2717.02950974 | 2623.46 | 3.50% | 12 Feb 2025 | 0.32% | | ||
| 2780.53248507 | 2681.50191653 | 3.63% | 13 Feb 2025 | 3.12% | | ||
| 2795.84559092 | 2699.5618 | 3.50% | 14 Feb 2025 | -0.15% | | ||
| 2807.14311324 | 2706.8 | 3.64% | 15 Feb 2025 | 3.16% | | ||
| 3336.93555219 | 3217.4758 | 3.65% | 16 Feb 2025 | 3.61% | | ||
| 2876.58499929 | 2772.94 | 3.67% | 17 Feb 2025 | 3.62% | | ||
|
||
- 14-day growth is calculated as an annualized percentage relative to the value of the rate 14 days prior. | ||
|
||
| Max Yearly % | Max Day-to-day yearly % | Max 14-day yearly % | | ||
| ------------ | ----------------------- | ------------------- | | ||
| 9.83% | 48.59% | 3.68% | | ||
|
||
- Max day-to-day yearly % indicates the maximum growth between two emissions as an annualized percentage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.0; | ||
|
||
import '../BaseTest.sol'; | ||
|
||
import {RsETHL2PriceCapAdapter} from '../../src/contracts/lst-adapters/RsETHL2PriceCapAdapter.sol'; | ||
import {CapAdaptersCodeArbitrum} from '../../scripts/DeployArbitrum.s.sol'; | ||
|
||
contract RsETHArbitrumPriceCapAdapterTest is BaseTest { | ||
constructor() | ||
BaseTest( | ||
CapAdaptersCodeArbitrum.rsETHAdapterCode(), | ||
90, | ||
ForkParams({network: 'arbitrum', blockNumber: 307001415}), | ||
'RsETH_Arbitrum' | ||
) | ||
{} | ||
|
||
function _createAdapter( | ||
IPriceCapAdapter.CapAdapterParams memory capAdapterParams | ||
) internal override returns (IPriceCapAdapter) { | ||
return new RsETHL2PriceCapAdapter(capAdapterParams); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.0; | ||
|
||
import '../BaseTest.sol'; | ||
|
||
import {RsETHL2PriceCapAdapter} from '../../src/contracts/lst-adapters/RsETHL2PriceCapAdapter.sol'; | ||
import {CapAdaptersCodeBase} from '../../scripts/DeployBase.s.sol'; | ||
|
||
contract RsETHBasePriceCapAdapterTest is BaseTest { | ||
constructor() | ||
BaseTest( | ||
CapAdaptersCodeBase.rsETHAdapterCode(), | ||
90, | ||
ForkParams({network: 'base', blockNumber: 26503333}), | ||
'RsETH_Base' | ||
) | ||
{} | ||
|
||
function _createAdapter( | ||
IPriceCapAdapter.CapAdapterParams memory capAdapterParams | ||
) internal override returns (IPriceCapAdapter) { | ||
return new RsETHL2PriceCapAdapter(capAdapterParams); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters