Skip to content

Commit 71dc1d7

Browse files
authored
(Express Relay):renamed easyLend argument name (#1691)
1 parent 5e92531 commit 71dc1d7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

express_relay/examples/easy_lend/contracts/EasyLend.sol

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ contract EasyLend is IExpressRelayFeeReceiver {
115115
function _getVaultHealth(
116116
Vault memory vault
117117
) internal view returns (uint256) {
118-
uint256 priceCollateral = _getPrice(vault.tokenIdCollateral);
119-
uint256 priceDebt = _getPrice(vault.tokenIdDebt);
118+
uint256 priceCollateral = _getPrice(vault.tokenPriceFeedIdCollateral);
119+
uint256 priceDebt = _getPrice(vault.tokenPriceFeedIdDebt);
120120

121121
if (priceCollateral < 0) {
122122
revert NegativePrice();
@@ -140,8 +140,8 @@ contract EasyLend is IExpressRelayFeeReceiver {
140140
* @param amountDebt: amount of debt tokens in the vault
141141
* @param minHealthRatio: minimum health ratio of the vault, 10**18 is 100%
142142
* @param minPermissionlessHealthRatio: minimum health ratio of the vault before permissionless liquidations are allowed. This should be less than minHealthRatio
143-
* @param tokenIdCollateral: price feed Id of the collateral token
144-
* @param tokenIdDebt: price feed Id of the debt token
143+
* @param tokenPriceFeedIdCollateral: price feed Id of the collateral token
144+
* @param tokenPriceFeedIdDebt: price feed Id of the debt token
145145
* @param updateData: data to update price feeds with
146146
*/
147147
function createVault(
@@ -151,8 +151,8 @@ contract EasyLend is IExpressRelayFeeReceiver {
151151
uint256 amountDebt,
152152
uint256 minHealthRatio,
153153
uint256 minPermissionlessHealthRatio,
154-
bytes32 tokenIdCollateral,
155-
bytes32 tokenIdDebt,
154+
bytes32 tokenPriceFeedIdCollateral,
155+
bytes32 tokenPriceFeedIdDebt,
156156
bytes[] calldata updateData
157157
) public payable returns (uint256) {
158158
_updatePriceFeeds(updateData);
@@ -163,8 +163,8 @@ contract EasyLend is IExpressRelayFeeReceiver {
163163
amountDebt,
164164
minHealthRatio,
165165
minPermissionlessHealthRatio,
166-
tokenIdCollateral,
167-
tokenIdDebt
166+
tokenPriceFeedIdCollateral,
167+
tokenPriceFeedIdDebt
168168
);
169169
if (minPermissionlessHealthRatio > minHealthRatio) {
170170
revert InvalidHealthRatios();

express_relay/examples/easy_lend/contracts/EasyLendStructs.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ struct Vault {
88
uint256 amountDebt;
99
uint256 minHealthRatio; // 10**18 is 100%
1010
uint256 minPermissionlessHealthRatio;
11-
bytes32 tokenIdCollateral;
12-
bytes32 tokenIdDebt;
11+
bytes32 tokenPriceFeedIdCollateral;
12+
bytes32 tokenPriceFeedIdDebt;
1313
}

0 commit comments

Comments
 (0)