๐ŸŸฃUpdate LTV

PUT /lender/offers/changeLTV

Change the LTV of an offer.

Headers

Header
Required
Type
Description

x-api-key

Yes

string

API key

Content-Type

Yes

string

application/json

Example Request

PUT https://lavarave.wtf/api/sdk/v1.0/lender/offers/changeLTV

Request Body Fields

Field
Required
Type
Description

offerAddress

Yes

string

Address of the loan offer.

signature

Yes

string

Signature of the change request.

newLTV

Yes

number

New LTV ratio as a decimal value. Setting LTV to 0 closes the offer. Range: 0 to 0.8

Response Fields

Field
Type
Description

success

boolean

Boolean indicating whether the LTV change was successful.

transaction

string

Base58 encoded serialized transaction ready for signing (empty for LTV changes).

message

string

Confirms the new LTV value that was applied to the offer.

Request Body Example

{
  "offerAddress": "2UeBsPFcfeVq4thdeCaXpLw3gPh4HhbKbye6SukhCCzJ",
  "signature": "WJbFzTRxLMcS5ETtD4vaepNBMu6L8nfiLuDac8Eqk6KEjiRP94kEB3t7iSE1p6XYuguStPcqatqgZV1L6SkoQVu",
  "newLTV": 0.8
}

Response Example

{
  "success": true,
  "transaction": "",
  "message": "LTV updated to 0.8"
}

Last updated