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

Commit

Permalink
Merge pull request #33 from canterberry/security/ucac-dos-vulnerability
Browse files Browse the repository at this point in the history
πŸ”’ Fix DoS vulnerability in Credit Protocol contract
  • Loading branch information
aupiff committed Apr 19, 2018
2 parents e742d19 + 082e01f commit d91ba95
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit d91ba95

Please sign in to comment.