mirror of
https://github.com/Instadapp/InstaContract.git
synced 2024-07-29 22:47:45 +00:00
Fixed a very vulnerable bug.
This commit is contained in:
parent
7a891eab62
commit
da9581f643
|
@ -240,6 +240,7 @@ contract BorrowTasks is RepayLoan {
|
|||
bytes32 cdpBytes = bytes32(cdpNum);
|
||||
MakerCDP loanMaster = MakerCDP(cdpAddr);
|
||||
address cdpOwner = loanMaster.lad(cdpBytes);
|
||||
require(cdps[cdpOwner] == blankCDP, "More than 1 CDP is not allowed.");
|
||||
cdps[cdpOwner] = cdpBytes;
|
||||
emit CDPClaimed(cdpBytes, msg.sender);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user