Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Update solidity_contracts/src/CairoPrecompiles/DualVmToken.sol
Browse files Browse the repository at this point in the history
Co-authored-by: Mathieu <60658558+enitrat@users.noreply.github.com>
  • Loading branch information
obatirou and enitrat authored Nov 14, 2024
1 parent 78e4ab3 commit 0958f1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion solidity_contracts/src/CairoPrecompiles/DualVmToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import {NoDelegateCall} from "../Security/NoDelegateCall.sol";
/// @dev This implementation is highly experimental
/// It relies on CairoLib to perform Cairo precompile calls
/// Events are emitted in this contract but also in the Starknet token contract
/// @dev External functions are to prevent a user making an EVM call to a malicious contract,
/// @dev External functions are `NoDelegateCall` to prevent a user making an EVM call to a malicious contract,
/// with any calldata, that would be able to directly control on their behalf any quantity of any one of the ERC20
/// tokens held by the victim's account contract, with the sole condition that the ERC20 has an
/// authorized DualVmToken wrapper.
/// This is blocked at the protocol level, but made explicit at the contract level
/// @author Kakarot
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
contract DualVmToken is NoDelegateCall {
Expand Down

0 comments on commit 0958f1b

Please sign in to comment.