Skip to content

Commit 77e6851

Browse files
authored
update to v2.3.0 (#134)
* update to v2.3.0 * fix package.json
1 parent e407c88 commit 77e6851

File tree

5 files changed

+28
-16
lines changed

5 files changed

+28
-16
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@
3535
"csv-writer": "^1.6.0",
3636
"dotenv": "^16.0.2",
3737
"lodash": "^4.17.21",
38-
"mars-liquidation-node": "1.0.0",
39-
"mars-rover-health-computer-node": "2.2.0",
40-
"marsjs-types": "2.0.2",
38+
"marsjs-types": "2.3.0",
4139
"osmojs": "^16.5.1",
4240
"prom-client": "^15.1.3",
4341
"redis": "^4.3.0",
4442
"request": "^2.88.2",
4543
"requests": "^0.3.0",
4644
"ts-jest": "^29.2.5",
4745
"ts-node": "^10.9.1",
48-
"uuid": "^9.0.0"
46+
"uuid": "^9.0.0",
47+
"mars-rover-health-computer-node": "2.3.0-node",
48+
"mars-liquidation": "2.3.0"
4949
},
5050
"devDependencies": {
5151
"@babel/core": "^7.21.0",

src/rover/ActionGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
LiquidationAmountInputs,
2020
calculate_liquidation_amounts_js,
2121
HealthData,
22-
} from 'mars-liquidation-node'
22+
} from 'mars-liquidation'
2323
import { AssetParamsBaseForAddr } from 'marsjs-types/mars-params/MarsParams.types.js'
2424

2525
const MAX_DEBT_AMOUNT = 1000000000

src/rover/RoverExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { RouteRequester } from '../query/routing/RouteRequesterInterface'
2626
import { compute_health_js, HealthComputer } from 'mars-rover-health-computer-node'
2727
import { TokensResponse } from 'marsjs-types/mars-account-nft/MarsAccountNft.types'
2828
import { ChainQuery } from '../query/chainQuery'
29-
import { HealthData } from 'mars-liquidation-node'
29+
import { HealthData } from 'mars-liquidation'
3030

3131
interface CreateCreditAccountResponse {
3232
tokenId: number

test/rover/mocks/stateMock.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
PerpParams,
1616
RedBankSettings,
1717
} from 'marsjs-types/mars-params/MarsParams.types'
18-
import { HealthData, HealthValuesResponse } from 'mars-liquidation-node'
18+
import { HealthData, HealthValuesResponse } from 'mars-liquidation'
1919
import { compute_health_js, HealthComputer } from 'mars-rover-health-computer-node'
2020

2121
export class StateMock {
@@ -152,6 +152,13 @@ export const defaultAssetParams: AssetParamsBaseForAddr = {
152152
credit_manager: defaultCmSettingsForAddr,
153153
denom: 'uatom',
154154
deposit_cap: '100000000000',
155+
interest_rate_model: {
156+
base: '0',
157+
optimal_utilization_rate: '0.85',
158+
slope_1: '0.1',
159+
slope_2: '1.2',
160+
},
161+
reserve_factor: '0.1',
155162
liquidation_bonus: defaultLiquidationBonus,
156163
liquidation_threshold: '0.85',
157164
max_loan_to_value: '0.8',

yarn.lock

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5186,18 +5186,23 @@ map-obj@^4.3.0:
51865186

51875187
mars-liquidation-node@1.0.0:
51885188
version "1.0.0"
5189-
resolved "https://registry.npmjs.org/mars-liquidation-node/-/mars-liquidation-node-1.0.0.tgz"
5189+
resolved "https://registry.yarnpkg.com/mars-liquidation-node/-/mars-liquidation-node-1.0.0.tgz#3751c4f1271b38dbd8f72ba8709291740ccc5427"
51905190
integrity sha512-dSfUUvENgdFN1lsLOVOlzc7X9A3kf1evBggy5vscvE9ugtGRMqa/tLhM3DwVajilc6hE0J5KQ/5OEc6CWYZF6A==
51915191

5192-
mars-rover-health-computer-node@2.2.0:
5193-
version "2.2.0"
5194-
resolved "https://registry.npmjs.org/mars-rover-health-computer-node/-/mars-rover-health-computer-node-2.2.0.tgz"
5195-
integrity sha512-wPJHY/E7jIURgfNkokTUR25fax7jd9+ew0gLht/BDLPPjQQtWRwthD1y8Le0t0AUq5/77tRLdeBM6wTjM5EBDA==
5192+
mars-liquidation@2.3.0:
5193+
version "2.3.0"
5194+
resolved "https://registry.yarnpkg.com/mars-liquidation/-/mars-liquidation-2.3.0.tgz#09eb2a7d650033eec5f1a2c4c0cdb6f196469651"
5195+
integrity sha512-IueJ7rHFLcod+dmT9olyxKMqqKAY6tdrIArtK5PhHCbHAGvCrEr7+qtkYAASktiWv10dDbzO9VmvwZ0wiIMcOQ==
51965196

5197-
marsjs-types@2.0.2:
5198-
version "2.0.2"
5199-
resolved "https://registry.npmjs.org/marsjs-types/-/marsjs-types-2.0.2.tgz"
5200-
integrity sha512-cMGolNdcAAH+jR2azOeQGrvIoGnuIWPKUZsAJrZNXAjowqDzn7wupAtsTlFGqHwtAhM0jjktsSoTOd4+DhYvOw==
5197+
mars-rover-health-computer-node@2.3.0-node:
5198+
version "2.3.0-node"
5199+
resolved "https://registry.yarnpkg.com/mars-rover-health-computer-node/-/mars-rover-health-computer-node-2.3.0-node.tgz#385f926eb106bca8cba9e715a341f8de05b1fd23"
5200+
integrity sha512-dZSE8JTV7tvLgqna7HvZiSoAQyfktlNbfeVN3rJrM4Wtv9as0ghYLzYOr3o5ZzUB0NdU6ZrWm8Knewrf8t01rQ==
5201+
5202+
marsjs-types@2.3.0:
5203+
version "2.3.0"
5204+
resolved "https://registry.yarnpkg.com/marsjs-types/-/marsjs-types-2.3.0.tgz#7bd7a7ed5833f38a590d9a14df83376d1f19174e"
5205+
integrity sha512-pRvGzU/l2yPtkeHYvBuoZlipLiMHsK31BtpcRXGkHL7yFnsZ7p9zK0I7QJBdhDAYBGgqzOcRWEwf91bGaD8yJw==
52015206
dependencies:
52025207
"@cosmjs/amino" "^0.29.4"
52035208

0 commit comments

Comments
 (0)