MarketThree.calcGlobalFeeRate() static method calculates the global fee rate and total value locked (TVL) metrics by comparing two market snapshots taken at different times.
Usage
Parameters
MarketSnapshotData Type
Returns
Returns an object with:Calculation Details
The method performs the following calculations:-
Calculate PT fees in base token:
-
Calculate SY fees in base token:
-
Calculate TVL:
-
Calculate total fee rate: