Update bsip-0040.md

This commit is contained in:
Stefan Schießl 2018-07-30 12:41:56 +02:00 committed by GitHub
parent 6c7a90a097
commit 41a2403875
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,8 +115,7 @@ Stateless assert, all argument types. `Argument value` must NOT be equal to any
#### `lt, le, gt, ge`
Stateless assert. Allows explicit type converstion:
- `int` type: use as is
- `string` type: user `length` as `argument value`
- `price` struct `{base = {amount, asset_id}, quote = {amount, asset_id}}`: convert to float price `argument value = base.amount/quote.amount`
- `string` type: use `length` of string as `argument value`
The different asserts read as:
- `lt`: `Argument value` must be less than `comparative`