Skip to content

Commit e6c4aa3

Browse files
author
CLINT
authored
Sip 35 skinny ether collateral (Synthetixio#385)
SIP 35 EtherCollateral
1 parent 7e86e76 commit e6c4aa3

18 files changed

+1823
-54
lines changed

.vscode/settings.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"solidity.compilerOptimization": 200,
55
"solidity.packageDefaultDependenciesContractsDirectory": "",
66
"solidity.packageDefaultDependenciesDirectory": "node_modules",
7-
"eslint.autoFixOnSave": true,
87
"editor.codeActionsOnSave": {
98
"source.fixAll.eslint": true
109
}

contracts/Depot.sol

+4-4
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ contract Depot is SelfDestructible, Pausable {
409409
* @param guaranteedEtherRate The ether exchange rate which must be honored or the call will revert.
410410
* @param guaranteedSynthetixRate The synthetix exchange rate which must be honored or the call will revert.
411411
*/
412-
function exchangeEtherForSynthetixAtRate(uint guaranteedEtherRate, uint guaranteedSynthetixRate)
412+
function exchangeEtherForSNXAtRate(uint guaranteedEtherRate, uint guaranteedSynthetixRate)
413413
public
414414
payable
415415
pricesNotStale
@@ -428,7 +428,7 @@ contract Depot is SelfDestructible, Pausable {
428428
* @notice Exchange sUSD for SNX
429429
* @param synthAmount The amount of synths the user wishes to exchange.
430430
*/
431-
function exchangeSynthsForSynthetix(uint synthAmount)
431+
function exchangeSynthsForSNX(uint synthAmount)
432432
public
433433
pricesNotStale
434434
notPaused
@@ -458,7 +458,7 @@ contract Depot is SelfDestructible, Pausable {
458458
* @param synthAmount The amount of synths the user wishes to exchange.
459459
* @param guaranteedRate A rate (synthetix price) the caller wishes to insist upon.
460460
*/
461-
function exchangeSynthsForSynthetixAtRate(uint synthAmount, uint guaranteedRate)
461+
function exchangeSynthsForSNXAtRate(uint synthAmount, uint guaranteedRate)
462462
public
463463
pricesNotStale
464464
notPaused
@@ -468,7 +468,7 @@ contract Depot is SelfDestructible, Pausable {
468468
{
469469
require(guaranteedRate == usdToSnxPrice, "Guaranteed rate would not be received");
470470

471-
return exchangeSynthsForSynthetix(synthAmount);
471+
return exchangeSynthsForSNX(synthAmount);
472472
}
473473

474474
/**

0 commit comments

Comments
 (0)