@liquidium/client 0.6.0-rc.0 → 0.6.0-rc.1

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/index.js CHANGED
@@ -4175,6 +4175,12 @@ var SupplyFlowExecutor = class {
4175
4175
  });
4176
4176
  }
4177
4177
  case Chain.ETH: {
4178
+ if (params.amount > MAX_UINT256) {
4179
+ throw new LiquidiumError(
4180
+ LiquidiumErrorCode.VALIDATION_ERROR,
4181
+ "ETH transfer amount exceeds uint256 maximum"
4182
+ );
4183
+ }
4178
4184
  if (!params.walletAdapter.sendEthTransaction) {
4179
4185
  throw new LiquidiumError(
4180
4186
  LiquidiumErrorCode.VALIDATION_ERROR,
@@ -6862,6 +6868,16 @@ function validateCreateRequest(request) {
6862
6868
  "Simple loan collateral amount must be greater than zero"
6863
6869
  );
6864
6870
  }
6871
+ const collateralMinimumError = getDepositAmountMinimumValidationError({
6872
+ amount: request.collateral.amount,
6873
+ asset: request.collateral.asset
6874
+ });
6875
+ if (collateralMinimumError) {
6876
+ throw new LiquidiumError(
6877
+ LiquidiumErrorCode.VALIDATION_ERROR,
6878
+ collateralMinimumError.message
6879
+ );
6880
+ }
6865
6881
  if (request.borrow.amount <= 0n) {
6866
6882
  throw new LiquidiumError(
6867
6883
  LiquidiumErrorCode.VALIDATION_ERROR,