Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
'EscrowChecker.sol',
'ExchangeRatesWithoutInvPricing.sol',
'IssuerWithoutLiquidations.sol',
'EmptyEtherWrapper.sol',
],
providerOptions: {
default_balance_ether: 10000000000000, // extra zero just in case (coverage consumes more gas)
Expand Down
15 changes: 15 additions & 0 deletions contracts/EmptyEtherWrapper.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
pragma solidity ^0.5.16;

// Stub functions required by the DebtCache and FeePool contracts.
// https://docs.synthetix.io/contracts/source/contracts/etherwrapper
contract EmptyEtherWrapper {
constructor() public {}

/* ========== VIEWS ========== */

function totalIssuedSynths() public view returns (uint) {
return 0;
}

function distributeFees() external {}
}
2 changes: 1 addition & 1 deletion hardhat/tasks/task-ops.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ task('ops', 'Run Optimism chain')
taskArguments.maxMemory = true;

const opsPath = taskArguments.optimismPath.replace('~', homedir);
const opsBranch = 'regenesis/0.4.0';
const opsBranch = taskArguments.optimismBranch;
const opsCommit = taskArguments.optimismCommit;
const opsDetached = taskArguments.detached ? '-d' : '';

Expand Down
6 changes: 2 additions & 4 deletions publish/deployed/local-ovm/synths.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
[
{
"name": "sUSD",
"asset": "USD",
"subclass": "MultiCollateralSynth"
"asset": "USD"
},
{
"name": "sETH",
"asset": "ETH",
"subclass": "MultiCollateralSynth"
"asset": "ETH"
}
]
15 changes: 9 additions & 6 deletions publish/src/commands/deploy/deploy-loans.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,18 @@ module.exports = async ({ account, addressOf, deployer, getDeployParameter, netw

await deployer.deployContract({
name: 'EtherWrapper',
source: useOvm ? 'EmptyEtherWrapper' : 'EtherWrapper',
deps: ['AddressResolver'],
args: [account, addressOf(ReadProxyAddressResolver), WETH_ADDRESS],
args: useOvm ? [] : [account, addressOf(ReadProxyAddressResolver), WETH_ADDRESS],
});

await deployer.deployContract({
name: 'NativeEtherWrapper',
deps: ['AddressResolver'],
args: [account, addressOf(ReadProxyAddressResolver)],
});
if (!useOvm) {
await deployer.deployContract({
name: 'NativeEtherWrapper',
deps: ['AddressResolver'],
args: [account, addressOf(ReadProxyAddressResolver)],
});
}

// ----------------
// Multi Collateral System
Expand Down