Skip to content

Commit

Permalink
add behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jtriley-eth committed Apr 16, 2024
1 parent 57b8629 commit 3ac15b1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@ contract Vault {
}
```

### Behavior

- Each external call asserts:
- The call succeeded.
- The call returned the correct returndatasize.
- If the call returns a boolean:
- The call returned `true`.
- If the call is ERC20's `transfer`, `transferFrom`, or `approve`:
- No data was returned OR (the returndata is 32 bytes AND is `true`).
- The operators `+`, `-`, `*`, `/`, and `%` revert if the operation:
- Overflows.
- Underflows.
- Divides by zero.
- The operator `~` masks the address to `160` bits after performing bitwise `not`.

### Existing Types

Documentation is prefixed to respective type and function definitions.
Expand Down

0 comments on commit 3ac15b1

Please sign in to comment.