Skip to content

Commit 542f3bf

Browse files
authored
misc hotfixes (#1068)
1 parent ea8a3d5 commit 542f3bf

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

docs/contracts/protocol-fee/deployments.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ sidebar_position: 1.1
99

1010
| Contract | Address |
1111
|-----------------|-----------------------------------------------------------------------------------------------------------------------|
12-
| AssetSink | [0x0](https://etherscan.io/address/0x0) |
13-
| Firepit | 0x1 |
14-
| V3FeeController | 0x2 |
12+
| AssetSink | 0xPLACEHOLDER_TBD |
13+
| Firepit | 0xPLACEHOLDER_TBD |
14+
| V3FeeController | 0xPLACEHOLDER_TBD |
1515
| UNI | [0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984](https://etherscan.io/address/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984) |
1616

1717
### Deployment Process

docs/contracts/protocol-fee/guides/getting-started.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ Participants can view the `threshold` by calling [`Firepit.threshold()`](../tech
2828
<Tabs>
2929
<TabItem value="solidity" label="solidity">
3030
```solidity
31-
uint256 threshold = IFirepit(address(0x1)).threshold();
31+
uint256 threshold = IFirepit(address(0x0000..TBD)).threshold();
3232
```
3333
</TabItem>
3434
<TabItem value="bash" label="cast">
3535
```bash
36-
cast call 0x1 "threshold()(uint256)" --rpc-url <RPC_URL>
36+
cast call 0x0000..TBD "threshold()(uint256)" --rpc-url <RPC_URL>
3737
```
3838
</TabItem>
3939
</Tabs>
@@ -49,7 +49,7 @@ Integrators should assess the risks of max approving the `Firepit` contract
4949
<TabItem value="solidity" label="solidity">
5050
```solidity
5151
IERC20(0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984).approve(
52-
0x1,
52+
0x0000..TBD,
5353
type(uint256).max
5454
);
5555
```
@@ -59,7 +59,7 @@ IERC20(0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984).approve(
5959
cast send 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 \
6060
"approve(address,uint256)(bool)" \
6161
--rpc-url <RPC_URL> \
62-
0x1 \
62+
0x0000..TBD \
6363
115792089237316195423570985008687907853269984665640564039457584007913129639935
6464
```
6565
</TabItem>
@@ -73,12 +73,12 @@ to the value in contract storage
7373
<Tabs>
7474
<TabItem value="solidity" label="solidity">
7575
```solidity [solidity]
76-
uint256 nonce = IFirepit(address(0x1)).nonce();
76+
uint256 nonce = IFirepit(address(0x0000..TBD)).nonce();
7777
```
7878
</TabItem>
7979
<TabItem value="bash" label="cast">
8080
```bash
81-
cast call 0x1 "nonce()(uint256)" --rpc-url <RPC_URL>
81+
cast call 0x0000..TBD "nonce()(uint256)" --rpc-url <RPC_URL>
8282
```
8383
</TabItem>
8484
</Tabs>
@@ -90,24 +90,24 @@ Once the value of the assets exceeds the value of the UNI tokens, integrators sh
9090
<Tabs>
9191
<TabItem value="solidity" label="solidity">
9292
```solidity
93-
uint256 _nonce = IFirepit(address(0x1)).nonce();
93+
uint256 _nonce = IFirepit(address(0x0000..TBD)).nonce();
9494
9595
Currency[] memory _assets = new Currency[](3);
9696
_assets[0] = Currency.wrap(address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48)); // USDC
9797
_assets[1] = Currency.wrap(address(0xdAC17F958D2ee523a2206206994597C13D831ec7)); // USDT
9898
_assets[2] = Currency.wrap(address(0x0000000000000000000000000000000000000000)); // ETH
9999
100-
IFirepit(address(0x1)).release(_nonce, _assets, 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045);
100+
IFirepit(address(0x0000..TBD)).release(_nonce, _assets, 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045);
101101
```
102102
</TabItem>
103103

104104
<TabItem value="bash" label="cast">
105105
```bash
106-
cast send 0x1 "release(uint256,address[],address)" --rpc-url <RPC_URL> \
106+
cast send 0x0000..TBD "release(uint256,address[],address)" --rpc-url <RPC_URL> \
107107
<CURRENT_NONCE> <ASSET_ADDRESSES> <RECEIVER_ADDRESS>
108108

109109
# example: release USDC, USDT, and ETH to vitalik.eth
110-
cast send 0x1 "release(uint256,address[],address)" --rpc-url <RPC_URL> \
110+
cast send 0x0000..TBD "release(uint256,address[],address)" --rpc-url <RPC_URL> \
111111
0 \
112112
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xdAC17F958D2ee523a2206206994597C13D831ec7,0x0000000000000000000000000000000000000000 \
113113
0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

0 commit comments

Comments
 (0)