
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
A library to wrapper the lendroid Server and Lendroid Contract API's
yarn add lendroid
// or
npm install --save lendroid
for the specific versions check on Releases
import { Lendroid } from 'lendroid'
const options = {
provider: window.web3.currentProvider, // optional
apiEndpoint: 'http://localhost:8080', // default
apiLoanRequrests: 'http://localhost:5000', //default
stateCallback: () => { }, // required: in React, Vue frontend, do run `this.forceUpdate()`
}
const LendroidJS = new Lendroid(options)
// properties
const { loading, orders, exchangeRates, contracts, web3Utils, metamask = {} } = LendroidJS
const { address, network } = metamask;
const { currentWETHExchangeRate, currentDAIExchangeRate } = exchangeRates
const offers = orders.orders
const myLendOffers = orders.myOrders.lend
const myBorrowOffers = orders.myOrders.borrow
// methods
const methods = {
onCreateOrder: LendroidJS.onCreateOrder,
onWrapETH: LendroidJS.onWrapETH,
onAllowance: LendroidJS.onAllowance,
onPostLoans: LendroidJS.onPostLoans,
onFillLoan: LendroidJS.onFillLoan,
onClosePosition: LendroidJS.onClosePosition,
onTopUpPosition: LendroidJS.onTopUpPosition,
onLiquidatePosition: LendroidJS.onLiquidatePosition,
onFillOrderServer: LendroidJS.onFillOrderServer,
onDeleteOrder: LendroidJS.onDeleteOrder,
onCancelOrder: LendroidJS.onCancelOrder,
}
methods.onWrapETH(amount, operation === 'Wrap')
First clone repository and install dependencies via Yarn(yarn
) or NPM(npm install
)
via HTTPS - git clone https://github.com/lendroidproject/lendroid-js.git
or SSH - git clone git@github.com:lendroidproject/lendroid-js.git
On UI, update package.json
to use custom library as follow and install dependencies via Yarn(yarn
) or NPM(npm install
)
"dependencies": {
...
"lendroid": "../lendroid-js",
...
}
To update library, go to lendroid-js
and run tsc
Copy dist
folder to <path-to-ui>/node_modules/lendroid/
e.g: cp -rf ./dist ../reloanr-ui/node_modules/lendroid/
FAQs
Web3.js wrapper that interacts with Lendroid Smart Contracts
We found that lendroid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.