File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ import { ReservoirPriceOracle } from "src/ReservoirPriceOracle.sol";
9
9
contract DeployScript is Script {
10
10
ReservoirPriceOracle internal _oracle;
11
11
uint16 internal DEFAULT_TWAP_PERIOD = 15 minutes ;
12
- uint64 internal DEFAULT_MULTIPLIER = 200_000 ;
12
+ uint64 internal DEFAULT_REWARD_GAS_AMOUNT = 100_000 ;
13
13
PriceType internal DEFAULT_PRICE_TYPE = PriceType.CLAMPED_PRICE;
14
14
15
15
function run () external {
16
16
vm.startBroadcast ();
17
17
18
18
// Deploy ReservoirPriceOracle
19
- _oracle = new ReservoirPriceOracle (DEFAULT_TWAP_PERIOD, DEFAULT_MULTIPLIER , DEFAULT_PRICE_TYPE);
19
+ _oracle = new ReservoirPriceOracle (DEFAULT_TWAP_PERIOD, DEFAULT_REWARD_GAS_AMOUNT , DEFAULT_PRICE_TYPE);
20
20
21
21
vm.stopBroadcast ();
22
22
23
23
require (_oracle.twapPeriod () == DEFAULT_TWAP_PERIOD, "TWAP Period " );
24
- require (_oracle.rewardGasAmount () == DEFAULT_MULTIPLIER , "Multiplier " );
24
+ require (_oracle.rewardGasAmount () == DEFAULT_REWARD_GAS_AMOUNT , "Multiplier " );
25
25
require (_oracle.PRICE_TYPE () == DEFAULT_PRICE_TYPE, "PriceType " );
26
26
require (_oracle.owner () == msg .sender , "Owner " );
27
27
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { PriceType } from "src/Enums.sol";
7
7
import { ReservoirPriceOracle } from "src/ReservoirPriceOracle.sol " ;
8
8
9
9
contract SetRoute is Script {
10
- ReservoirPriceOracle constant internal _oracle = ReservoirPriceOracle (payable (0x0e20047f33e6b39Ff2c7c9f2aC0388BbCa20B646 ));
10
+ ReservoirPriceOracle constant internal _oracle = ReservoirPriceOracle (payable (0xD54B3cFE18E2b16A96D93254A6fDC8c5123411EC ));
11
11
address constant internal USDC = 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 ;
12
12
address constant internal USDT = 0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9 ;
13
13
uint256 constant internal _threshold = 0.0002e18 ; // 0.02% or 2bp
You can’t perform that action at this time.
0 commit comments