mirror of
https://github.com/autistic-symposium/blockchains-security-toolkit.git
synced 2025-05-18 06:30:22 -04:00
🍤 minor grammar
This commit is contained in:
parent
23a187a49c
commit
c3eecaed87
1 changed files with 3 additions and 3 deletions
|
@ -8,9 +8,9 @@
|
|||
|
||||
* The vulnerability was rated as critical because it would have allowed a malicious attacker to assign a user’s allowance to themselves, enabling the attacker to steal that user’s funds.
|
||||
|
||||
* The purpose of ERC-20’s `approve(spender, amount)` function is to allow any address to spend the tokens on behalf of the tokens’ owner.
|
||||
* The purpose of ERC20’s `approve(spender, amount)` function is to allow any address to spend the tokens on behalf of the tokens’ owner.
|
||||
|
||||
* The vulnerability here consisted of a faulty implementation of standard ERC-20 functions in REDACTED’s wxBTRFLY token, which is a wrapped version of the xBTRFLY.
|
||||
* The vulnerability here consisted of a faulty implementation of standard ERC20 functions in REDACTED’s wxBTRFLY token, which is a wrapped version of the xBTRFLY.
|
||||
|
||||
|
||||
### Vulnerability
|
||||
|
@ -42,7 +42,7 @@ where `allowance(sender, recipient)` should be `allowance(sender, msg.sender)`.
|
|||
|
||||
<br>
|
||||
|
||||
[Here](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol) is how OpenZeppelin implements this function for `ERC-20`:
|
||||
[Here](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol) is how OpenZeppelin implements this function for `ERC20`:
|
||||
|
||||
```
|
||||
function transferFrom(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue