Skip to content

Commit e0e7763

Browse files
authored
fix(sui-indexer): adjust IKA sign and presign fee estimates (#320)
* add estimised fee Signed-off-by: Vu Vo <vu.voth@gmail.com> * update Signed-off-by: Vu Vo <vu.voth@gmail.com> --------- Signed-off-by: Vu Vo <vu.voth@gmail.com>
1 parent fceb12b commit e0e7763

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/sui-indexer/src/redeem-sui-client.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,13 @@ export async function createSuiClients(
318318
signerMnemonic: mnemonic,
319319
ikaClient: ikaClient,
320320
client: mystenClient,
321-
// TODO: set correct values here.
322-
ikaSignCost: 400 * miniIka,
323-
ikaPresignCost: 250 * miniIka,
321+
// TODO:: We can get the function about pricing use this endpoint:
322+
// https://github.com/dwallet-labs/ika/blob/01efcabe6282164b242040f0e338de6de164ae41/deployed_contracts/testnet/ika_dwallet_2pc_mpc/sources/coordinator.move#L807
323+
// cost fee here is estimated relatively
324+
// sign cost = 0.2 ika * 60% = 0.32 ika
325+
// presign cost = 0.15 * 60% = 0.24 ika
326+
ikaSignCost: 320 * miniIka,
327+
ikaPresignCost: 240 * miniIka,
324328
}),
325329
);
326330
}

0 commit comments

Comments
 (0)