In a Derivatives Contract, Does the Allowance Apply to the Notional Value or the Margin Deposited?
The allowance applies to the margin or collateral deposited, not the notional value of the position. For example, to open a 10x leverage position on 1 ETH (a 10 ETH notional value), a trader would only need to deposit around 1 ETH as margin.
The user would set a token allowance for the margin asset (e.g. 1 ETH or its equivalent in USDC), allowing the derivatives protocol to pull that specific amount into the margin account for the position.