...ee memory slot
let ptr := mload(0x40)
// Copy function signature and arguments from calldata at zero position into memory at pointer position
calldatacopy(ptr, 0, calldatasize())
// Delegatecall method of the implementation contract, returns 0 on error
let result := delegate...
...WPbMRiW6708d33662626.png)
The attacker invoked the `swapTitanXForInfernoAndBurn` function in the `INFERNO` contract by setting the `amountBlazeMin` argument to zero. The configuration was invalid slippage protection.
1. The `swapTitanXForInfernoAndBurn` function was first invoked to swap 7,96...
...add{
// macth like arm for macro
($a:expr,$b:expr)=>{
// macro expand to this code
{
// $a and $b will be templated using the value/variable provided to macro
$a+$b
}
}
}
fn main(){
// call to macro, $a=1 and $b=2
add!(1,2);
}
```
这段...