Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

🔒 Fix DoS vulnerability in Credit Protocol contract #33

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/CreditProtocol.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ contract CreditProtocol is Ownable {
return adjustedTxLevel;
}

function executeUcacTx(address _ucacContractAddr) public {
function executeUcacTx(address _ucacContractAddr) private {
uint256 txLevelBeforeCurrentTx = currentTxLevel(_ucacContractAddr);
uint256 txLevelAfterCurrentTx = txLevelBeforeCurrentTx + 10 ** 27 / txPerGigaTokenPerHour;
require(ucacs[_ucacContractAddr].totalStakedTokens >= txLevelAfterCurrentTx);
Expand Down