🦺Invest
Our Invest module allows you to integrate calling protocol contracts seamlessly without knowing the underlying domain model.
Prepare an investment / Enter a market
Preparing an investment will create prepared transactions. If the protocol and underlying farm/lending pool/liquidity pool support it, one or more transactions will be prepared. Often times, the first transaction is an approval transaction.
Prepare an investment. Returns a list of prepared transactions that need to be signed.
POST
https://api.decentri.fi/{protocol}/{markettype}/markets/{marketId}/enter
Path Parameters
Name | Type | Description |
---|---|---|
markettype* | string | one of [farming, lending, pooling] |
marketId* | string | id of the underlying market |
protocol* | string | slug of a protocol |
Request Body
Name | Type | Description |
---|---|---|
user* | string | address wanting to enter the market |
amount* | BigInteger | amount to be entered the market into |
Last updated