delegatable / delegatable-sol

Counterfactual revocable-delegation
https://delegatable.org
113 stars 14 forks source link

test: assert root delegation caveat enforcement #61

Open aa-eyup opened 1 year ago

aa-eyup commented 1 year ago

Summary

Assert chained delegations can not be used to transfer more ERC20 tokens than the root delegation permits. Tests a scenario where an initial delegation allows some amount X of ERC20 transfer which is then re-delegated allowing some amount >X and asserts that some amount >X can not be transferred. Impacts test files only.

Motivation