Skip to content

Commit

Permalink
Fix encoding of transaction data in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fedgiac committed Feb 7, 2024
1 parent 63f5464 commit 7cece45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/amm.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ minTradedToken0=31337
priceOracle=0x1337133713371337133713371337133713371337
priceOracleData=0xca11d47a
appData=0x3232323232323232323232323232323232323232323232323232323232323232
cast abi-encode 'f(address,address,uint256,address,bytes,bytes32)' "$token0" "$token1" "$minTradedToken0" "$priceOracle" "$priceOracleData" "$appData"
cast abi-encode 'f((address,address,uint256,address,bytes,bytes32))' "($token0, $token1, $minTradedToken0, $priceOracle, $priceOracleData, $appData)"
```

### Supported price oracles
Expand All @@ -89,7 +89,7 @@ If the tokens are not the same as those traded on the chosen reference pair, no
If Foundry is available in your system, you can generate the bytes calldata with the following command:
```sh
referencePair=0x1111111111111111111111111111111111111111
cast abi-encode 'f(address)' "$referencePair"
cast abi-encode 'f((address))' "($referencePair)"
```

## Risk profile
Expand Down

0 comments on commit 7cece45

Please sign in to comment.