From 2e527cbd4d398448b0b5f313e448ffc3606d86ac Mon Sep 17 00:00:00 2001 From: franz Date: Fri, 20 Dec 2024 09:49:34 +0100 Subject: [PATCH] apr fix --- modules/actions/sts/sync-staking-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/actions/sts/sync-staking-data.ts b/modules/actions/sts/sync-staking-data.ts index 5af6dee02..1b7a07c18 100644 --- a/modules/actions/sts/sync-staking-data.ts +++ b/modules/actions/sts/sync-staking-data.ts @@ -29,7 +29,7 @@ export async function syncStakingData( const stakingApr = (parseFloat(stakingDataOnchain.totalDelegated) / parseFloat(stakingDataOnchain.totalAssets)) * - (data.data.apr * (1 - validatorFee)) * + ((data.data.apr / 100) * (1 - validatorFee)) * (1 - parseFloat(stakingDataOnchain.protocolFee)); await prisma.prismaStakedSonicData.upsert({