Skip to content

Commit

Permalink
Edited 09smart-contracts-security.asciidoc with Atlas code editor
Browse files Browse the repository at this point in the history
  • Loading branch information
nadamsoreilly committed Oct 11, 2018
1 parent 436760c commit 85e8a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 09smart-contracts-security.asciidoc
Expand Up @@ -2434,7 +2434,7 @@ mathematical operations. It may be the case that it is better to keep
all variables in high precision in Solidity and convert back to lower
precisions in external apps (this is essentially how the `decimals`
variable works in ERC20 token
contracts). To see an example of how this can be done, we recommend looking at https://github.com/dapphub/ds-math[DS-Math]. They use some
contracts). To see an example of how this can be done, we recommend looking at https://github.com/dapphub/ds-math[DS-Math]. It uses some
funky naming (“wads” and “rays”), but the concept is useful.

==== Real-World Example: Ethstick
Expand Down Expand Up @@ -2521,7 +2521,7 @@ contract AttackContract {
The attacker might disguise this contract as their own private address and socially engineer the victim (the owner of the +Phishable+ contract) to send some form of transaction to the address—perhaps sending this contract some amount of ether. The attacker might disguise this contract as their own private
address and socially engineer the victim to send some form of transaction
to the address. The victim, unless careful, may not notice that
there is code at the attacker’s address, or the attacker may pass it off
there is code at the attacker’s address, or the attacker might pass it off
as being a multisignature wallet or some advanced storage wallet (remember
that the source code of public contracts is not available by default).

Expand Down

0 comments on commit 85e8a58

Please sign in to comment.