@ember-finance/sdk 2.26.0 → 2.27.0
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.
|
@@ -39,13 +39,12 @@ export interface EmberShareSwapConfig {
|
|
|
39
39
|
/**
|
|
40
40
|
* Minimum gross collateral value per swap (collateral units). A swap with
|
|
41
41
|
* `gross < minSwapGross` reverts `SwapAmountTooSmall`. 0/undefined disables the floor.
|
|
42
|
-
* EVM-only (no Sui equivalent yet) — omit on Sui.
|
|
43
42
|
*/
|
|
44
43
|
minSwapGross?: bigint;
|
|
45
44
|
/**
|
|
46
45
|
* TVL-independent absolute ceiling on this source share's post-swap held value
|
|
47
46
|
* (collateral units). A swap pushing `currentHeldValue + gross` above it reverts
|
|
48
|
-
* `EmberShareHeldValueCapExceeded`. 0/undefined disables it.
|
|
47
|
+
* `EmberShareHeldValueCapExceeded`. 0/undefined disables it.
|
|
49
48
|
*/
|
|
50
49
|
maxHeldValueAbsolute?: bigint;
|
|
51
50
|
}
|
|
@@ -51,6 +51,8 @@ export declare class SuiAtomicLiquidityReader {
|
|
|
51
51
|
epochStartedAt: bigint;
|
|
52
52
|
epochUsedAmount: bigint;
|
|
53
53
|
feeMultiplierCurve: FeeMultiplierTier[];
|
|
54
|
+
minSwapGross: bigint;
|
|
55
|
+
maxHeldValueAbsolute: bigint;
|
|
54
56
|
} | null>;
|
|
55
57
|
/** Caller's ALV (non-transferable) share balance from the `shares` table. */
|
|
56
58
|
shareOf(vaultId: string, account: string): Promise<bigint>;
|
|
@@ -99,7 +99,9 @@ export class SuiAtomicLiquidityReader {
|
|
|
99
99
|
maxUtilizationPercentage: toBig(cfg.max_utilization_percentage),
|
|
100
100
|
epochStartedAt: toBig(cfg.epoch_started_at),
|
|
101
101
|
epochUsedAmount: toBig(cfg.epoch_used_amount),
|
|
102
|
-
feeMultiplierCurve: curve
|
|
102
|
+
feeMultiplierCurve: curve,
|
|
103
|
+
minSwapGross: toBig(cfg.min_swap_gross),
|
|
104
|
+
maxHeldValueAbsolute: toBig(cfg.max_held_value_absolute)
|
|
103
105
|
};
|
|
104
106
|
}
|
|
105
107
|
}
|
|
@@ -248,7 +250,9 @@ export class SuiAtomicLiquidityReader {
|
|
|
248
250
|
feePercentage: config.feePercentage,
|
|
249
251
|
holdbackPercentage: config.holdbackPercentage,
|
|
250
252
|
maxUtilizationPercentage: config.maxUtilizationPercentage,
|
|
251
|
-
feeMultiplierCurve: config.feeMultiplierCurve
|
|
253
|
+
feeMultiplierCurve: config.feeMultiplierCurve,
|
|
254
|
+
minSwapGross: config.minSwapGross,
|
|
255
|
+
maxHeldValueAbsolute: config.maxHeldValueAbsolute
|
|
252
256
|
},
|
|
253
257
|
feeWaived: feeWaived.includes(owner),
|
|
254
258
|
holdbackWaived: holdbackWaived.includes(owner)
|