# [M-01] Usage of deprecated sendValue
to send eth
#111
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-69
edited-by-warden
primary issue
Highest quality submission among a set of duplicates
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Lines of code
https://github.com/code-423n4/2022-11-paraspace/blob/main/paraspace-core/contracts/protocol/libraries/logic/LiquidationLogic.sol#L875
https://github.com/code-423n4/2022-11-paraspace/blob/main/paraspace-core/contracts/protocol/libraries/logic/MarketplaceLogic.sol#L571
Vulnerability details
Impact
The recommended way to send ether is with
call
function. Usingtransfer
orsendValue
could lead to running out of gas, due to the fact that it is predefined and the transfer will fail, in such scenario there won't be way to withraw the amount from the contract.Proof of Concept
Tools Used
Manual audit
Recommended Migration Steps
The recommended way to send ether is with
call
function. Usingtransfer
orsendValue
could lead to running out of gas, due to the fact that it is predefined and the transfer will fail, in such scenario there won't be way to withraw the amount from the contract.The text was updated successfully, but these errors were encountered: