Lendroid Protocol version 1.0

QuantstampFiles named in the report

Quantstamp reviewed Lendroid Whalestreet (Lendroid Protocol version 1.0) on 18 Feb 2019: 15 findings, 0 critical; 11 marked fixed, 4 open.

No open critical findings
Open the reportOpen Lendroid Whalestreet’s security record

Report hosted on certificate.quantstamp.com.

Trustblock does not review code.

Findings15

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium006
Low405
LowAllowance Double-Spend ExploitOpen

As it presently is constructed, the contract is vulnerable to the allowance double-spend exploit, as with other ERC20 tokens. An example of an exploit goes as follows: 1. Alice allows Bob to transfer N amount of Alice's tokens (N>0) by calling the approve() method on Token smart contract (passing Bob's address and N as method arguments) 2. After some time, Alice decides to change from N to M (M>0) the number of Alice's tokens Bob is allowed to transfer, so she calls the approve() method again, this time passing Bob's address and M as method argments 3. Bob notices Alice's second transaction before it was mined and quickly sends another transaction that calls the transferFrom() method to transfer N Alice's tokens somewhere 4. If Bob's transaction will be executed before Alice's transaction, then Bob will successfully transfer N Alice's tokens and will gain an ability to transfer another M tokens 5. Before Alice notices any irregularities, Bob calls transferFrom() method again, this time to transfer M Alice's tokens. The exploit (as described above) is mitigated through use of functions that increase/decrease the allowance relative to its current value, such as increaseAllowance and decreaseAllowance. Pending community agreement on an ERC standard that would protect against this exploit, we recommend that developers of applications dependent on approve() / transferFrom() should keep in mind that they have to set allowance to 0 first and verify if it was used before setting the new value. Teams who decide to wait for such a standard should make these recommendations to app developers who work with their token contract.

LowBlock Timestamp ManipulationOpen

Projects may rely on block timestamps for various purposes. However, it's important to realize that miners individually set the timestamp of a block, and attackers may be able to manipulate timestamps for their own purposes. If a smart contract relies on a timestamp, it must take this into account. (L241, 308, 327, 350, 404)

LowOwner Can Whitelist Tokens, Whitelist Wranglers, and Set Position Threshold (Centralization of Power)Open

Smart contracts will often have owner variables to designate the person with special privileges to make modifications to the smart contract. However, this centralization of power needs to be made clear to the users, especially depending on the level of privilege the contract allows to the owner. L100 set_position_threshold() and L107 set_wrangler_status() both can only be called by the owner but can impact who can interact with the smart contracts.

LowOwner can withdraw deposited collateral (Centralization of Power)Open

The escape_hatch() function allows the owner to withdraw all tokens that the contract owns. A malicious owner will be able to withdraw all tokens that have been deposited as collateral by borrowers.

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (2)

  • contracts/ERC20.v.py
  • contracts/protocol.v.py

Part of Lendroid Whalestreet’s security record

Lendroid Whalestreet
Audits2 audits by 1 firmLast audit Nov 2020, by Quantstamp.
Critical findingsNo open critical findingsAcross 2 reports.
Open Lendroid Whalestreet’s security record

Security firm

Quantstamp

236 projects reviewed · 332 reports · latest Oct 2026

See Quantstamp’s audits

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us