@merkl/api 0.18.0 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database/api/seeder/resources/protocol.d.ts +48 -48
- package/dist/src/backgroundJobs/index.js +8 -7
- package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.js +11 -11
- package/dist/src/backgroundJobs/jobs/health.js +1 -1
- package/dist/src/backgroundJobs/jobs/opportunityUpdater.js +2 -1
- package/dist/src/cache/index.js +2 -2
- package/dist/src/cache/redis.js +1 -1
- package/dist/src/eden/index.d.ts +1014 -919
- package/dist/src/entities/campaign.js +1 -1
- package/dist/src/errors/VoidString.error.d.ts +4 -0
- package/dist/src/errors/VoidString.error.js +7 -0
- package/dist/src/factories/dynamicData/factory.d.ts +0 -0
- package/dist/src/factories/dynamicData/factory.js +10 -0
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/factory.js +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Ajna.d.ts +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Ajna.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Ambiant.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Ambiant.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Badger.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Badger.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Clamm.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Clamm.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Compound.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Compound.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Default.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Default.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Dolomite.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Dolomite.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/EigenLayer.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/EigenLayer.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Encompassing.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Encompassing.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Erc20.d.ts +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Erc20.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Erc20Snapshot.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Erc20Snapshot.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Euler.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Euler.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/EventBased.d.ts +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/EventBased.js +5 -5
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Hyperdrive.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Hyperdrive.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Invalid.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Invalid.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Ion.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Ion.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/JsonAirdrop.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/JsonAirdrop.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Morpho.d.ts +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Morpho.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Radiant.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Radiant.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Silo.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Silo.js +2 -2
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/UniswapV4.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/UniswapV4.js +3 -3
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Vest.d.ts +1 -1
- package/dist/src/factories/{metadataFactory → opportunityMetadata}/implementations/Vest.js +3 -3
- package/dist/src/guards/BackOffice.guard.js +1 -1
- package/dist/src/guards/Engine.guard.js +1 -1
- package/dist/src/guards/TokenAuth.guard.js +1 -1
- package/dist/src/index.d.ts +211 -186
- package/dist/src/jobs/etl/dynamic-data.js +1 -1
- package/dist/src/jobs/etl/pendings.js +5 -4
- package/dist/src/jobs/etl/prices.js +3 -3
- package/dist/src/jobs/etl/reward-breakdowns.js +3 -3
- package/dist/src/jobs/etl/rewards.js +2 -2
- package/dist/src/jobs/etl/update-dynamic-data.js +4 -4
- package/dist/src/jobs/etl/update-euler-vaults.d.ts +1 -0
- package/dist/src/jobs/etl/update-euler-vaults.js +122 -0
- package/dist/src/libs/campaigns/campaignTypes/AjnaDynamicData.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/BadgerDynamicData.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.js +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/GenericProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/GenericProcessor.js +4 -4
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AaveProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AaveProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AnglesLiquid.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AnglesLiquid.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AssetProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AssetProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AuraProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/AuraProcessor.js +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerGaugeProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerGaugeProcessor.js +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerPoolProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerPoolProcessor.js +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerV3PoolProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BalancerV3PoolProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BeefyProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/BeefyProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/CompoundProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/CompoundProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/ERC4626Processor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/ERC4626Processor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EnzymeProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EnzymeProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EqualizerGaugeProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EqualizerGaugeProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EulerBorrowProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EulerBorrowProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EulerLendProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/EulerLendProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/FluidProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/FluidProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/FraxProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/FraxProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/GammaProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/GammaProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/GearboxProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/GearboxProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HanjiVaultProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HanjiVaultProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HoldStationProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HoldStationProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HourglassProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HourglassProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/MaverickBPProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/MaverickBPProcessor.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/MetamorphoProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/MetamorphoProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/NoLinkVaultProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/NoLinkVaultProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/PendleProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/PendleProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/PendleYTProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/PendleYTProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/RadiantProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/RadiantProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/RfxProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/RfxProcessor.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/Satlayer.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/Satlayer.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpectraProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpectraProcessor.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpectraYTProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpectraYTProcessor.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpliceProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SturdySiloProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SturdySiloProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TempestVaultProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TempestVaultProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TemplateProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TorosProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TorosProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/UniswapProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/UniswapProcessor.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/VicunaProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/VicunaProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/WoofiProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/WoofiProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/ZkSwapThreePoolProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/ZkSwapThreePoolProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/curveNPoolProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/curveNPoolProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/curveProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/curveProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/stakedCurveProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/stakedCurveProcessor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/xU308Processor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/xU308Processor.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPrices.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/EventBasedDynamicData.js +14 -17
- package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/UniswapV4DynamicData.js +2 -2
- package/dist/src/libs/campaigns/campaignsDynamicData.js +1 -1
- package/dist/src/libs/campaigns/utils/fetchClamInfo.d.ts +1 -1
- package/dist/src/libs/campaigns/utils/fetchLogs.js +1 -1
- package/dist/src/libs/campaigns/utils/getCompV2ForksVaults.js +4 -4
- package/dist/src/libs/campaigns/utils/getContractCreationBlock.js +1 -1
- package/dist/src/libs/campaigns/utils/getDolomiteMarkets.js +1 -1
- package/dist/src/libs/campaigns/utils/getEulerV2Vaults.js +5 -5
- package/dist/src/libs/campaigns/utils/getUniswapV4Pools.js +4 -4
- package/dist/src/libs/deprecated-merklv3/index.d.ts +1 -1
- package/dist/src/libs/deprecated-merklv3/index.js +2 -2
- package/dist/src/libs/getTokensList.js +1 -1
- package/dist/src/libs/merklChainData.js +2 -2
- package/dist/src/libs/parse/marketsWithCache.js +2 -2
- package/dist/src/libs/positions/ajna/index.js +1 -1
- package/dist/src/libs/positions/badger/index.js +2 -2
- package/dist/src/libs/positions/clamm/index.js +3 -3
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.js +1 -1
- package/dist/src/libs/staticCampaigns.js +2 -2
- package/dist/src/libs/tokens/balances.js +1 -1
- package/dist/src/libs/tokens/tokenInfo.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.controller.js +3 -3
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.repository.js +1 -1
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.service.js +2 -2
- package/dist/src/modules/v4/airflow/airflow.service.js +1 -1
- package/dist/src/modules/v4/apr/apr.model.d.ts +1 -1
- package/dist/src/modules/v4/apr/apr.model.js +1 -1
- package/dist/src/modules/v4/apr/apr.service.js +1 -1
- package/dist/src/modules/v4/blacklist/blacklist.controller.js +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.repository.js +1 -1
- package/dist/src/modules/v4/boost/boost.controller.d.ts +1 -1
- package/dist/src/modules/v4/cache/cache.repository.js +1 -1
- package/dist/src/modules/v4/cache/cache.service.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +23 -23
- package/dist/src/modules/v4/campaign/campaign.controller.js +4 -4
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.model.js +2 -2
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +60 -46
- package/dist/src/modules/v4/campaign/campaign.repository.js +6 -5
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +69 -55
- package/dist/src/modules/v4/campaign/campaign.service.js +9 -9
- package/dist/src/modules/v4/chain/chain.controller.d.ts +10 -10
- package/dist/src/modules/v4/chain/chain.controller.js +1 -1
- package/dist/src/modules/v4/chain/chain.model.d.ts +1 -1
- package/dist/src/modules/v4/chain/chain.model.js +1 -1
- package/dist/src/modules/v4/chain/chain.repository.d.ts +11 -11
- package/dist/src/modules/v4/chain/chain.repository.js +1 -1
- package/dist/src/modules/v4/chain/chain.service.d.ts +10 -10
- package/dist/src/modules/v4/claims/claims.controller.js +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.controller.js +2 -2
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.repository.js +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.js +1 -1
- package/dist/src/modules/v4/creator/creator.controller.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.controller.js +2 -2
- package/dist/src/modules/v4/creator/creator.model.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.repository.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.repository.js +1 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +4 -4
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +6 -7
- package/dist/src/modules/v4/enso/enso.model.d.ts +40 -40
- package/dist/src/modules/v4/enso/enso.service.d.ts +3 -3
- package/dist/src/modules/v4/enso/enso.service.js +2 -2
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.controller.js +1 -1
- package/dist/src/modules/v4/explorer/explorer.model.js +1 -1
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +5 -5
- package/dist/src/modules/v4/explorer/explorer.repository.js +1 -1
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +6 -6
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +1 -1
- package/dist/src/modules/v4/interaction/interaction.model.d.ts +2 -2
- package/dist/src/modules/v4/interaction/interaction.service.d.ts +1 -1
- package/dist/src/modules/v4/interaction/interaction.service.js +3 -3
- package/dist/src/modules/v4/kyberzap/kyberzap.model.d.ts +22 -22
- package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +1 -1
- package/dist/src/modules/v4/kyberzap/kyberzap.service.js +1 -1
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.js +1 -1
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.js +1 -1
- package/dist/src/modules/v4/liquidity/liquidity.controller.js +1 -1
- package/dist/src/modules/v4/liquidity/liquidity.service.js +1 -1
- package/dist/src/modules/v4/merklRoot/index.d.ts +3 -3
- package/dist/src/modules/v4/merklRoot/index.js +3 -3
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.js +2 -2
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.js +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +81 -81
- package/dist/src/modules/v4/opportunity/opportunity.controller.js +3 -3
- package/dist/src/modules/v4/opportunity/opportunity.converter.js +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +11 -11
- package/dist/src/modules/v4/opportunity/opportunity.model.js +7 -7
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +128 -114
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +13 -5
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +106 -106
- package/dist/src/modules/v4/opportunity/opportunity.service.js +11 -11
- package/dist/src/modules/v4/opportunity/validate-id.pipe.js +1 -1
- package/dist/src/modules/v4/price/price.controller.d.ts +8 -8
- package/dist/src/modules/v4/price/price.controller.js +2 -2
- package/dist/src/modules/v4/price/price.model.js +1 -1
- package/dist/src/modules/v4/price/price.repository.d.ts +10 -10
- package/dist/src/modules/v4/price/price.repository.js +1 -1
- package/dist/src/modules/v4/price/price.service.d.ts +8 -8
- package/dist/src/modules/v4/price/price.service.js +3 -3
- package/dist/src/modules/v4/prisma/index.d.ts +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.controller.js +2 -2
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +209 -21
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +120 -62
- package/dist/src/modules/v4/programPayload/programPayload.service.js +4 -2
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +6 -6
- package/dist/src/modules/v4/protocol/protocol.controller.js +1 -1
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +10 -10
- package/dist/src/modules/v4/protocol/protocol.repository.js +1 -1
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +2 -2
- package/dist/src/modules/v4/protocol/protocol.service.js +3 -3
- package/dist/src/modules/v4/referral/referral.controller.js +1 -1
- package/dist/src/modules/v4/reward/index.d.ts +2 -2
- package/dist/src/modules/v4/reward/index.js +2 -2
- package/dist/src/modules/v4/reward/reward.controller.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.controller.js +6 -6
- package/dist/src/modules/v4/reward/reward.model.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +10 -10
- package/dist/src/modules/v4/reward/reward.repository.js +4 -4
- package/dist/src/modules/v4/reward/reward.service.d.ts +56 -56
- package/dist/src/modules/v4/reward/reward.service.js +5 -3
- package/dist/src/modules/v4/router.d.ts +201 -181
- package/dist/src/modules/v4/router.js +23 -23
- package/dist/src/modules/v4/status/status.controller.d.ts +24 -4
- package/dist/src/modules/v4/status/status.controller.js +13 -3
- package/dist/src/modules/v4/status/status.model.d.ts +3 -0
- package/dist/src/modules/v4/status/status.model.js +2 -1
- package/dist/src/modules/v4/status/status.repository.d.ts +18 -10
- package/dist/src/modules/v4/status/status.repository.js +13 -3
- package/dist/src/modules/v4/status/status.service.d.ts +7 -6
- package/dist/src/modules/v4/status/status.service.js +15 -3
- package/dist/src/modules/v4/token/token.controller.d.ts +9 -9
- package/dist/src/modules/v4/token/token.controller.js +4 -4
- package/dist/src/modules/v4/token/token.model.d.ts +1 -1
- package/dist/src/modules/v4/token/token.repository.d.ts +3 -3
- package/dist/src/modules/v4/token/token.repository.js +3 -3
- package/dist/src/modules/v4/token/token.service.d.ts +11 -11
- package/dist/src/modules/v4/token/token.service.js +5 -5
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +1 -1
- package/dist/src/modules/v4/tvl/tvl.model.js +1 -1
- package/dist/src/modules/v4/tvl/tvl.service.js +1 -1
- package/dist/src/modules/v4/uniswapV4/uniswapV4.service.js +3 -3
- package/dist/src/modules/v4/user/user.controller.d.ts +22 -22
- package/dist/src/modules/v4/user/user.controller.js +2 -2
- package/dist/src/modules/v4/user/user.model.d.ts +1 -1
- package/dist/src/modules/v4/user/user.model.js +1 -1
- package/dist/src/modules/v4/user/user.repository.js +1 -1
- package/dist/src/modules/v4/user/user.service.js +2 -2
- package/dist/src/plugins/error-handling.plugin.d.ts +1 -1
- package/dist/src/plugins/error-handling.plugin.js +2 -2
- package/dist/src/routes/v1/allowances.d.ts +2 -2
- package/dist/src/routes/v1/allowances.js +5 -5
- package/dist/src/routes/v1/balances.js +5 -5
- package/dist/src/routes/v1/prices.js +1 -1
- package/dist/src/routes/v1/tokens.js +1 -1
- package/dist/src/routes/v3/app.d.ts +7 -2
- package/dist/src/routes/v3/app.js +20 -10
- package/dist/src/routes/v3/blacklist.js +1 -1
- package/dist/src/routes/v3/campaign/delay.js +3 -3
- package/dist/src/routes/v3/campaignClaims.js +3 -3
- package/dist/src/routes/v3/campaignUnclaimed.js +1 -1
- package/dist/src/routes/v3/campaigns.js +6 -7
- package/dist/src/routes/v3/campaignsForMainParameter.js +2 -2
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +2 -2
- package/dist/src/routes/v3/campaignsRewardsReport.js +4 -6
- package/dist/src/routes/v3/compoundV2.js +1 -1
- package/dist/src/routes/v3/euler.js +1 -1
- package/dist/src/routes/v3/health.js +1 -1
- package/dist/src/routes/v3/lostyield.js +3 -3
- package/dist/src/routes/v3/merkl.js +1 -1
- package/dist/src/routes/v3/morphoMarkets.js +1 -1
- package/dist/src/routes/v3/morphoVaults.js +1 -1
- package/dist/src/routes/v3/multiChainPositions.js +1 -1
- package/dist/src/routes/v3/opportunity.d.ts +2 -2
- package/dist/src/routes/v3/opportunity.js +3 -4
- package/dist/src/routes/v3/overview.d.ts +2 -2
- package/dist/src/routes/v3/overview.js +2 -3
- package/dist/src/routes/v3/positions.d.ts +3 -4
- package/dist/src/routes/v3/positions.js +4 -5
- package/dist/src/routes/v3/radiant.js +1 -1
- package/dist/src/routes/v3/recipients.js +1 -1
- package/dist/src/routes/v3/rewards.js +2 -2
- package/dist/src/routes/v3/rewardsReport.js +1 -1
- package/dist/src/routes/v3/router.d.ts +11 -6
- package/dist/src/routes/v3/silo.js +1 -1
- package/dist/src/routes/v3/token.js +4 -4
- package/dist/src/routes/v3/twt/participants.js +55 -3
- package/dist/src/routes/v3/uniswapv4.js +1 -1
- package/dist/src/routes/v3/updates.js +2 -2
- package/dist/src/routes/v3/userRewards.js +5 -5
- package/dist/src/utils/encodeCalls.d.ts +1 -1
- package/dist/src/utils/encodeCalls.js +1 -1
- package/dist/src/utils/error.d.ts +1 -1
- package/dist/src/utils/error.js +1 -1
- package/dist/src/utils/generateCardName.d.ts +1 -1
- package/dist/src/utils/generateCardName.js +1 -1
- package/dist/src/utils/generateIcons.d.ts +1 -1
- package/dist/src/utils/generateIcons.js +2 -2
- package/dist/src/utils/lastBlockBefore.js +2 -2
- package/dist/src/utils/pricer.js +1 -1
- package/dist/src/utils/prices/priceFetcherFactory.d.ts +1 -1
- package/dist/src/utils/prices/priceFetcherFactory.js +1 -1
- package/dist/src/utils/prices/priceService.js +2 -2
- package/dist/src/utils/prices/services/coinGeckoService.d.ts +1 -1
- package/dist/src/utils/prices/services/coinGeckoService.js +1 -1
- package/dist/src/utils/prices/services/defillamaService.d.ts +1 -1
- package/dist/src/utils/prices/services/defillamaService.js +1 -1
- package/dist/src/utils/prices/services/dexScreenerService.d.ts +1 -1
- package/dist/src/utils/prices/services/dexScreenerService.js +1 -1
- package/dist/src/utils/prices/services/erc4626Service.d.ts +1 -1
- package/dist/src/utils/prices/services/erc4626Service.js +2 -2
- package/dist/src/utils/prices/services/indexCoopService.d.ts +1 -1
- package/dist/src/utils/prices/services/indexCoopService.js +1 -1
- package/dist/src/utils/prices/services/priceFetcher.d.ts +1 -1
- package/dist/src/utils/prisma.d.ts +3 -3
- package/dist/src/utils/prisma.js +2 -2
- package/dist/src/utils/queries/activeCampaigns.d.ts +1 -1
- package/dist/src/utils/queries/activeCampaigns.js +1 -1
- package/dist/src/utils/queries/allCampaigns.d.ts +1 -1
- package/dist/src/utils/queries/allCampaigns.js +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/dist/src/libs/campaigns/getCampaigns.d.ts +0 -1
- package/dist/src/libs/campaigns/getCampaigns.js +0 -18
- package/dist/src/libs/custom/twtParticipants.d.ts +0 -6
- package/dist/src/libs/custom/twtParticipants.js +0 -54
- package/dist/src/modules/v4/programPayload/index.d.ts +0 -3
- package/dist/src/modules/v4/programPayload/index.js +0 -3
- package/dist/src/modules/v4/status/index.d.ts +0 -2
- package/dist/src/modules/v4/status/index.js +0 -2
- package/dist/src/types/parameters/Action.d.ts +0 -4
- package/dist/src/types/parameters/Action.js +0 -11
- package/dist/src/types/parameters/Chain.d.ts +0 -4
- package/dist/src/types/parameters/Chain.js +0 -13
- package/dist/src/types/parameters/ChainCampaignId.d.ts +0 -4
- package/dist/src/types/parameters/ChainCampaignId.js +0 -13
- package/dist/src/types/parameters/MainParameter.d.ts +0 -4
- package/dist/src/types/parameters/MainParameter.js +0 -19
- package/dist/src/types/parameters/OpportunityId.d.ts +0 -4
- package/dist/src/types/parameters/OpportunityId.js +0 -14
- package/dist/src/types/parameters/Timestamp.d.ts +0 -4
- package/dist/src/types/parameters/Timestamp.js +0 -16
- package/dist/src/types/parameters/Type.d.ts +0 -4
- package/dist/src/types/parameters/Type.js +0 -15
- package/dist/src/types/parameters/index.d.ts +0 -36
- package/dist/src/types/parameters/index.js +0 -17
- /package/dist/src/factories/{metadataFactory → opportunityMetadata}/factory.d.ts +0 -0
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HoldStationProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class HoldStationProcessor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HourglassProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import type { BigNumber } from "ethers";
|
4
4
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HourglassProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class HourglassProcessor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/MaverickBPProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/MaverickBPProcessor.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { MAVERICK_ZKSYNC_BP_LENS_ADDRESS } from "
|
2
|
-
import { generateCardName } from "
|
1
|
+
import { MAVERICK_ZKSYNC_BP_LENS_ADDRESS } from "@/constants";
|
2
|
+
import { generateCardName } from "@/utils/generateCardName";
|
3
3
|
import { BN2Number } from "@sdk";
|
4
4
|
import { GenericProcessor } from "../GenericProcessor";
|
5
5
|
export class MaverickBPProcessor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/MetamorphoProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/MetamorphoProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class MetamorphoProcessor extends GenericProcessor {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import { tokenType, type tokenTypeStruct } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/NoLinkVaultProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
import { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/PendleProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/PendleYTProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/RadiantProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/RadiantProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class RadiantProcessor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/RfxProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { RFX_DATASTORE } from "
|
2
|
-
import { generateCardName } from "
|
1
|
+
import { RFX_DATASTORE } from "@/constants";
|
2
|
+
import { generateCardName } from "@/utils/generateCardName";
|
3
3
|
import { BN2Number } from "@sdk";
|
4
4
|
import { ethers } from "ethers";
|
5
5
|
import { GenericProcessor } from "../GenericProcessor";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpectraProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpectraProcessor.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { NETWORK_SLUGS } from "
|
2
|
-
import { generateCardName } from "
|
1
|
+
import { NETWORK_SLUGS } from "@/constants";
|
2
|
+
import { generateCardName } from "@/utils/generateCardName";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class SpectraProcessor extends GenericProcessor {
|
5
5
|
rounds = {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpectraYTProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpectraYTProcessor.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { NETWORK_SLUGS } from "
|
2
|
-
import { generateCardName } from "
|
1
|
+
import { NETWORK_SLUGS } from "@/constants";
|
2
|
+
import { generateCardName } from "@/utils/generateCardName";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class SpectraYTProcessor extends GenericProcessor {
|
5
5
|
rounds = {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SpliceProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SturdySiloProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/SturdySiloProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class SturdySiloProcessor extends GenericProcessor {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import { tokenType, type tokenTypeStruct } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TempestVaultProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number, NULL_ADDRESS } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
import { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TemplateProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TorosProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/TorosProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class TorosProcessor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/UniswapProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/UniswapProcessor.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { generateCardName } from "
|
2
|
-
import { log } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
|
+
import { log } from "@/utils/logger";
|
3
3
|
import { BN2Number } from "@sdk";
|
4
4
|
import { GenericProcessor } from "../GenericProcessor";
|
5
5
|
export class UniswapProcessor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/VicunaProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/VicunaProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import axios from "axios";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
const findTvlByVaultAddress = (data, targetVaultAddress) => {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/WoofiProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/WoofiProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class WoofiProcessor extends GenericProcessor {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class ZkSwapThreePoolProcessor extends GenericProcessor {
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/curveNPoolProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/curveProcessor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/curveProcessor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
import { tokenType } from "../helpers/tokenType";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/xU308Processor.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import { type Campaign, type CampaignParameters } from "@sdk";
|
3
3
|
import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
|
4
4
|
import type { tokenType } from "../helpers/tokenType";
|
package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/xU308Processor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { generateCardName } from "
|
1
|
+
import { generateCardName } from "@/utils/generateCardName";
|
2
2
|
import { BN2Number } from "@sdk";
|
3
3
|
import { GenericProcessor } from "../GenericProcessor";
|
4
4
|
export class xU308Processor extends GenericProcessor {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Pricer } from "
|
1
|
+
import type { Pricer } from "@/utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
3
|
import { tokenType, type tokenTypeStruct } from "./helpers/tokenType";
|
4
4
|
export declare function getTokenPricesInfo(index: number, type: tokenType, typeInfo: any, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.ERC20LOGPROCESSOR> | CampaignParameters<Campaign.ERC20REBASELOGPROCESSOR> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<tokenTypeStruct>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { decodeCall, decodeReturnValue } from "
|
1
|
+
import { decodeCall, decodeReturnValue } from "@/utils/decodeCalls";
|
2
2
|
import { enzymeFundValueCalculatorRouterMapping, getTypeFromFactoryAddress } from "./helpers/factoryFinder";
|
3
3
|
import { getTypeFromAddressChain } from "./helpers/hardcoded";
|
4
4
|
import { getTypeFromOwnerAddress } from "./helpers/ownerFinder";
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { BucketService } from "
|
2
|
-
import { engineDbClient } from "
|
1
|
+
import { BucketService } from "@/modules/v4/bucket/bucket.service";
|
2
|
+
import { engineDbClient } from "@/utils/prisma";
|
3
3
|
import { BN2Number, ChainInteractionService, NETWORK_LABELS, } from "@sdk";
|
4
4
|
import moment from "moment";
|
5
5
|
import { log } from "../../../utils/logger";
|
@@ -43,11 +43,12 @@ async function computeEventBasedPoolTVLFromMostRecentStateSave(chainId, campaign
|
|
43
43
|
const bucket = new BucketService(bucketName, "merkl-production");
|
44
44
|
const storedStates = JSON.parse(await bucket.pull(fileName));
|
45
45
|
for (const [_, { value, params: _params }] of Object.entries(storedStates)) {
|
46
|
-
tvl +=
|
46
|
+
tvl += BN2Number(value.allTimeValue, decimalsCurrency);
|
47
47
|
}
|
48
|
+
tvl = tvl * priceCurrency;
|
49
|
+
tvl = Math.max(tvl, 1);
|
48
50
|
}
|
49
51
|
catch (e) {
|
50
|
-
console.log(e);
|
51
52
|
log.warn(`merklDynamic data - failed to decode state of event based on ${NETWORK_LABELS[chainId]}`);
|
52
53
|
}
|
53
54
|
return { tvl, blockNumber: blockNumber };
|
@@ -73,25 +74,21 @@ export async function EventBasedDynamicData(chainId, campaigns) {
|
|
73
74
|
const { tvl, blockNumber } = await computeEventBasedPoolTVLFromMostRecentStateSave(chainId, campaign.campaignId, priceToken, decimalsCurrency0);
|
74
75
|
const c = campaign;
|
75
76
|
const amount = BN2Number(c.amount, c.campaignParameters.decimalsRewardToken);
|
76
|
-
const multiplier = BN2Number(c.campaignParameters.topicToData[0].multiplier, 9);
|
77
|
+
const multiplier = BN2Number(c.campaignParameters.topicToData[0].multiplier, 12 + 9);
|
77
78
|
const startTimestamp = BN2Number(c.startTimestamp, 0);
|
78
79
|
const endTimestamp = BN2Number(c.endTimestamp, 0);
|
79
80
|
const isLive = moment().unix() > startTimestamp && moment().unix() < endTimestamp;
|
80
81
|
let distributionMeanAPR = 0;
|
81
82
|
const priceRewardToken = 1;
|
82
|
-
if (isLive
|
83
|
-
/**
|
84
|
-
* Handle whitelisted/blacklisted addresses to compute APR
|
85
|
-
*/
|
86
|
-
if (c.campaignParameters.whitelist.length > 0) {
|
87
|
-
// TODO
|
88
|
-
}
|
89
|
-
else if (c.campaignParameters.blacklist.length > 0) {
|
90
|
-
// TODO
|
91
|
-
}
|
83
|
+
if (isLive) {
|
92
84
|
/** Yearly rewards in $ */
|
93
|
-
const
|
94
|
-
distributionMeanAPR =
|
85
|
+
const fixRewardRate = multiplier * priceRewardToken;
|
86
|
+
distributionMeanAPR = fixRewardRate;
|
87
|
+
if (tvl * fixRewardRate >
|
88
|
+
(amount * (moment().unix() - startTimestamp)) / (endTimestamp - startTimestamp)) {
|
89
|
+
distributionMeanAPR =
|
90
|
+
(fixRewardRate * amount * (moment().unix() - startTimestamp)) / (endTimestamp - startTimestamp) / tvl;
|
91
|
+
}
|
95
92
|
distributionMeanAPR = !distributionMeanAPR || Number.isNaN(distributionMeanAPR) ? 0 : distributionMeanAPR;
|
96
93
|
dynamicData.push({
|
97
94
|
...campaign,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ComputedValueService } from "
|
2
|
-
import { engineDbClient } from "
|
1
|
+
import { ComputedValueService } from "@/modules/v4/computedValue";
|
2
|
+
import { engineDbClient } from "@/utils/prisma";
|
3
3
|
import { BN2Number, ERC20Interface, NULL_ADDRESS, RadiantInterface, RadiantPoolInterface, YEAR, } from "@sdk";
|
4
4
|
import { Contract } from "ethers";
|
5
5
|
import { log } from "../../../utils/logger";
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { BucketService } from "
|
2
|
-
import { engineDbClient } from "
|
1
|
+
import { BucketService } from "@/modules/v4/bucket/bucket.service";
|
2
|
+
import { engineDbClient } from "@/utils/prisma";
|
3
3
|
import { BN2Number, ChainInteractionService, EAprBreakdownType, NETWORK_LABELS, UniswapV4Addresses, UniswapV4StateViewInterface, getSqrtRatioAtTick, shortenAddress, } from "@sdk";
|
4
4
|
import moment from "moment";
|
5
5
|
import { log } from "../../../utils/logger";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { UserService } from "
|
1
|
+
import { UserService } from "@/modules/v4/user/user.service";
|
2
2
|
import { Campaign } from "@sdk";
|
3
3
|
import { AjnaDynamicData } from "./campaignTypes/AjnaDynamicData";
|
4
4
|
import { AmbientDynamicData } from "./campaignTypes/AmbientDynamicData";
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import type { Campaigns } from "
|
1
|
+
import type { Campaigns } from "@db/engine";
|
2
2
|
export declare function fetchClamInfo(campaigns: Campaigns[]): Promise<void>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { log } from "
|
1
|
+
import { log } from "@/utils/logger";
|
2
2
|
import { ChainId, ChainInteractionService, getContractCreationBlock } from "@sdk";
|
3
3
|
import axios from "axios";
|
4
4
|
async function fetchLogs(chainId, topics, addresses, fromBlock, toBlock) {
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Redis } from "
|
2
|
-
import { batchMulticallCallWithRetry } from "
|
3
|
-
import { log } from "
|
4
|
-
import { providers } from "
|
1
|
+
import { Redis } from "@/cache";
|
2
|
+
import { batchMulticallCallWithRetry } from "@/utils/generic";
|
3
|
+
import { log } from "@/utils/logger";
|
4
|
+
import { providers } from "@/utils/providers";
|
5
5
|
import { CTokenInterface, ChainId, CompFork, Comptrollers, ERC20Interface, NULL_ADDRESS, } from "@sdk";
|
6
6
|
import { defaultAbiCoder } from "ethers/lib/utils";
|
7
7
|
import { safeFetchLogs } from "./fetchLogs";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { log } from "
|
1
|
+
import { log } from "@/utils/logger";
|
2
2
|
// Connect to network
|
3
3
|
// Binary search to find the block where the contract code was first deployed
|
4
4
|
async function binarySearchContractCreation(provider, contractAddress, startBlock, endBlock) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Redis } from "
|
1
|
+
import { Redis } from "@/cache";
|
2
2
|
import { DOLOMITE_MARGIN_MAPPING, DolomiteInterface, DolomiteMargin__factory, ERC20Interface } from "@sdk";
|
3
3
|
import { batchMulticallCallWithRetry } from "../../../utils/generic";
|
4
4
|
import { providers } from "../../../utils/providers";
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { Redis } from "
|
2
|
-
import { batchMulticallCallWithRetry } from "
|
3
|
-
import { log } from "
|
4
|
-
import { apiDbClient } from "
|
5
|
-
import { providers } from "
|
1
|
+
import { Redis } from "@/cache";
|
2
|
+
import { batchMulticallCallWithRetry } from "@/utils/generic";
|
3
|
+
import { log } from "@/utils/logger";
|
4
|
+
import { apiDbClient } from "@/utils/prisma";
|
5
|
+
import { providers } from "@/utils/providers";
|
6
6
|
import { ChainInteractionService, ERC20Interface, EULER_ADDRESSES, EulerEVKInterface, EulerVaultLensInterface, EulerVault__factory, NETWORK_LABELS, eulerChainIds, getContractCreationBlock, } from "@sdk";
|
7
7
|
import { getAddress } from "ethers/lib/utils";
|
8
8
|
import _ from "lodash";
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Redis } from "
|
2
|
-
import { log } from "
|
3
|
-
import { apiDbClient } from "
|
4
|
-
import { providers } from "
|
1
|
+
import { Redis } from "@/cache";
|
2
|
+
import { log } from "@/utils/logger";
|
3
|
+
import { apiDbClient } from "@/utils/prisma";
|
4
|
+
import { providers } from "@/utils/providers";
|
5
5
|
import { ChainInteractionService, ERC20Interface, NETWORK_LABELS, NULL_ADDRESS, UniswapV4Addresses, UniswapV4PoolManagerInterface, getContractCreationBlock, } from "@sdk";
|
6
6
|
import { safeFetchLogs } from "./fetchLogs";
|
7
7
|
import { LoggedEntityType } from "./getEulerV2Vaults";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { CampaignsCacheUpdaterReturnType } from "
|
1
|
+
import type { CampaignsCacheUpdaterReturnType } from "@/backgroundJobs/jobs/campaignsCacheUpdater";
|
2
2
|
import { AMM, type ChainId, type MerklAPIType } from "@sdk";
|
3
3
|
import type { MerklChainData } from "../../types";
|
4
4
|
export declare function getClamsInfo(chainIds?: number[] | readonly ChainId[], AMMs?: Lowercase<keyof typeof AMM>[], user?: string, onlyLive?: boolean): Promise<MerklAPIType>;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Redis } from "
|
2
|
-
import { RewardConvertorService } from "
|
1
|
+
import { Redis } from "@/cache";
|
2
|
+
import { RewardConvertorService } from "@/modules/v4/reward/reward.converter";
|
3
3
|
import { AMM, ANGLE_NETWORKS, Campaign, NETWORK_LABELS, } from "@sdk";
|
4
4
|
import Big from "big.js";
|
5
5
|
import { utils } from "ethers";
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Redis } from "
|
2
|
-
import { TokenService } from "
|
1
|
+
import { Redis } from "@/cache";
|
2
|
+
import { TokenService } from "@/modules/v4/token/token.service";
|
3
3
|
import { Interface } from "@ethersproject/abi";
|
4
4
|
import { BN2Number, DistributionCreator__factory, Distributor__factory, NETWORK_LABELS, NULL_ADDRESS, registry, } from "@sdk";
|
5
5
|
import { batchMulticallCallWithRetry } from "../utils/generic";
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Redis } from "
|
2
|
-
import { hashArray } from "
|
1
|
+
import { Redis } from "@/cache";
|
2
|
+
import { hashArray } from "@/utils/hashArray";
|
3
3
|
import { getMorphoMarkets, getRadiantMarkets, getSiloMarkets } from "@sdk";
|
4
4
|
export const getMorphoMarketsWithCache = async (chainId, subtype) => {
|
5
5
|
return await Redis.getOrSet(`MorphoMarkets_${hashArray([chainId, subtype])}`, getMorphoMarkets, chainId, subtype);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { batchMulticallCallWithRetry } from "
|
1
|
+
import { batchMulticallCallWithRetry } from "@/utils/generic";
|
2
2
|
import { AjnaSubCampaignType, BN2Number, NETWORK_LABELS, PoolInfoUtilsInterface } from "@sdk";
|
3
3
|
import { POOL_INFO_UTILS } from "@sdk";
|
4
4
|
import axios from "axios";
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { CDPMANAGER_ADDRESS, SORTEDCDPS_ADDRESS } from "
|
2
|
-
import { batchMulticallCallWithRetry } from "
|
1
|
+
import { CDPMANAGER_ADDRESS, SORTEDCDPS_ADDRESS } from "@/constants";
|
2
|
+
import { batchMulticallCallWithRetry } from "@/utils/generic";
|
3
3
|
import { BN2Number, CdpManagerInterface, SortedCdpsInterface } from "@sdk";
|
4
4
|
export async function getBadgerUserPositions(user, _chainId, campaigns) {
|
5
5
|
/**
|