Skip to content

Commit 5c89c0f

Browse files
Patch/DF-21368 lido por remove ripcord (#3892)
* DF-21368 remove ripcord in lido-por * add changeset
1 parent ff448be commit 5c89c0f

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

.changeset/brown-pets-compete.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chainlink/lido-por-adapter': patch
3+
---
4+
5+
remove ripcord

packages/sources/lido-por/src/transport/reserve.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ export class BalanceTransport extends SubscriptionTransport<BaseEndpointTypes> {
8080
if (beaconBalance.isNegative()) {
8181
return {
8282
errorMessage: `ethereum-cl-indexer balance endpoint returns negative value ${beaconBalance}`,
83-
ripcord: true,
84-
ripcordDetails: JSON.stringify(
85-
`ethereum-cl-indexer balance endpoint returns negative value`,
86-
),
8783
statusCode: 502,
8884
timestamps: {
8985
providerDataRequestedUnixMs,
@@ -100,7 +96,6 @@ export class BalanceTransport extends SubscriptionTransport<BaseEndpointTypes> {
10096
return {
10197
data: {
10298
result: balance,
103-
ripcord: false,
10499
},
105100
result: balance,
106101
timestamps: {

packages/sources/lido-por/test/integration/__snapshots__/adapter.test.ts.snap

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`execute reserve endpoint should return ripcord 1`] = `
3+
exports[`execute reserve endpoint should return error 1`] = `
44
{
55
"errorMessage": "ethereum-cl-indexer balance endpoint returns negative value -1",
6-
"ripcord": true,
7-
"ripcordDetails": ""ethereum-cl-indexer balance endpoint returns negative value"",
86
"statusCode": 502,
97
"timestamps": {
108
"providerDataReceivedUnixMs": 978347471111,
@@ -17,7 +15,6 @@ exports[`execute reserve endpoint should return success 1`] = `
1715
{
1816
"data": {
1917
"result": "800",
20-
"ripcord": false,
2118
},
2219
"result": "800",
2320
"statusCode": 200,

packages/sources/lido-por/test/integration/adapter.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
} from '@chainlink/external-adapter-framework/util/testing-utils'
55
import { ethers } from 'ethers'
66
import * as nock from 'nock'
7-
import { mockResponseSuccess, mockResponseFailure } from './fixtures'
7+
import { mockResponseFailure, mockResponseSuccess } from './fixtures'
88

99
jest.mock('ethers', () => {
1010
const actualModule = jest.requireActual('ethers')
@@ -77,7 +77,7 @@ describe('execute', () => {
7777
expect(response.json()).toMatchSnapshot()
7878
})
7979

80-
it('should return ripcord', async () => {
80+
it('should return error', async () => {
8181
const data = {
8282
lidoContract: 'invalid',
8383
}

0 commit comments

Comments
 (0)