# require_zero_exclusive_asset_amount_limits · FT4 Rell API · Chromia Docs (concept)

> function require_ zero_ exclusive_ asset_ amount_ limits(value: big_ integer, name: text) Ensures that an asset amount is in the interval (0; 2^256) (exclu

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.assets/require_zero_exclusive_asset_amount_limits/

FUNCTION

# require\_zero\_exclusive\_asset\_amount\_limits

```signature
function require_zero_exclusive_asset_amount_limits(value: big_integer, name: text)
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/assets/asset.rell#lines-368)

Ensures that an asset amount is in the interval (0; 2^256) (exclusive)

Throws `"INVALID AMOUNT"` if value is too high

Throws `"INVALID AMOUNT"` if value is too low

Should be used inside other functions, and the `name` parameter should be passed
in a way that the error message is understood by the end users.

Example: `require_zero_exclusive_asset_amount_limits(-1, "Amount to mint")`
will throw this error:
`"INVALID AMOUNT: Amount to mint: value must be non-zero positive, actual: -1"`

**Parameters**

* **value** — the amount to check
* **name** — the name of the parameter for nicer error printing

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.core.assets/require_zero_exclusive_asset_amount_limits.html)Generated API reference, mirrored from the live docs
