Skip to content

Commit b89a50a

Browse files
Update for ETH-C (#15)
1 parent aa5d952 commit b89a50a

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
all :; SOLC_FLAGS="--optimize --optimize-runs 1000" dapp --use solc:0.6.11 build
1+
all :; DAPP_BUILD_OPTIMIZE=1 DAPP_BUILD_OPTIMIZE_RUNS=1000 dapp --use solc:0.6.12 build
22
clean :; dapp clean
33
test :; ./test.sh
4-
deploy :; dapp create MegaPoker
4+
deploy :; make && dapp create MegaPoker

shell.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
}: with dappPkgs;
66

77
mkShell {
8-
DAPP_SOLC = solc-static-versions.solc_0_6_11 + "/bin/solc-0.6.11";
8+
DAPP_SOLC = solc-static-versions.solc_0_6_12 + "/bin/solc-0.6.12";
99
SOLC_FLAGS="--optimize --optimize-runs=1000";
1010
buildInputs = [
1111
dapp

src/MegaPoker.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ contract MegaPoker {
7878
if ( univ2unieth.pass()) univ2unieth.poke();
7979
if (univ2wbtcdai.pass()) univ2wbtcdai.poke();
8080
if (univ2aaveeth.pass()) univ2aaveeth.poke();
81+
if (univ2daiusdt.pass()) univ2daiusdt.poke();
8182

8283
spot.poke("ETH-A");
8384
spot.poke("BAT-A");
@@ -104,14 +105,13 @@ contract MegaPoker {
104105
spot.poke("UNIV2UNIETH-A");
105106
spot.poke("UNIV2WBTCDAI-A");
106107
spot.poke("UNIV2AAVEETH-A");
108+
spot.poke("UNIV2DAIUSDT-A");
107109
}
108110

109111
function poke() external {
110112
process();
111113

112-
if (univ2daiusdt.pass()) univ2daiusdt.poke();
113-
114-
spot.poke("UNIV2DAIUSDT-A");
114+
spot.poke("ETH-C");
115115
}
116116

117117
// Use for poking OSMs prior to collateral being added

src/MegaPoker.t.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ interface Hevm {
5454
}
5555

5656
contract MegaPokerTest is DSTest {
57-
SpellLike constant spell = SpellLike(0x969b3701A17391f2906d8c5E5D816aBcD9D0f199);
57+
SpellLike constant spell = SpellLike(0x4145774D007C88392118f32E2c31686faCc9486E);
5858
SpellLike constant prevSpell = SpellLike(address(0));
5959

6060
ChainLogLike constant changelog = ChainLogLike(0xdA0Ab1e0017DEbCd72Be8599041a2aa3bA7e740F);

test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ set -e
33

44
[[ "$ETH_RPC_URL" && "$(seth chain)" == "ethlive" ]] || { echo "Please set a mainnet ETH_RPC_URL"; exit 1; }
55

6-
DAPP_BUILD_OPTIMIZE=1 DAPP_BUILD_OPTIMIZE_RUNS=1000 dapp --use solc:0.6.11 test --rpc-url="$ETH_RPC_URL" -v
6+
DAPP_BUILD_OPTIMIZE=1 DAPP_BUILD_OPTIMIZE_RUNS=1000 dapp --use solc:0.6.12 test --rpc-url="$ETH_RPC_URL" -v

0 commit comments

Comments
 (0)