Skip to content

Commit

Permalink
Update ERC-7726: errors are not enforced
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
ruvaag authored Sep 13, 2024
1 parent cea07d3 commit 103eb5b
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions ERCS/erc-7726.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ Returns the value of `baseAmount` of `base` in `quote` terms.

MUST round down towards 0.

MUST revert with `OracleUnsupportedPair` if not capable to provide data for the specified `base` and `quote` pair.

MUST revert with `OracleUntrustedData` if not capable to provide data within a degree of confidence publicly specified.

MUST revert if the value of `baseAmount` of `base` in `quote` terms would overflow in a uint256.

```yaml
Expand Down Expand Up @@ -80,34 +76,6 @@ For BTC, the address will be `0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB`.

For assets without an address, but with an ISO 4217 <!-- TODO: Bug Sam about editing EIP-1 to allow certain ISO external links --> code, the code will be used (e.g. `address(840)` for USD).

### Errors

#### OracleUnsupportedPair

```yaml
- name: OracleUnsupportedPair
type: error
inputs:
- name: base
type: address
- name: quote
type: address
```

#### OracleUntrustedData

```yaml
- name: OracleUntrustedData
type: error
inputs:
- name: base
type: address
- name: quote
type: address
```

## Rationale

The use of `getQuote` doesn't require the consumer to be aware of any decimal partitions that might have been defined
Expand Down

0 comments on commit 103eb5b

Please sign in to comment.