RiskProtocol / core-protocol

2 stars 0 forks source link

SC: Check if the wallet is on sanctions list and revert() if it is #57

Open mz7mz7mz7 opened 1 year ago

mz7mz7mz7 commented 1 year ago

https://go.chainalysis.com/chainalysis-oracle-docs.html This feature should have a switch where our operator can switch it on/off on the contract level.

If it is on -- contract, check if the interacting wallet is on the Sanctions list whenever they try to make a transfer/deposit/burn or any other operation that would trigger tokens movement.

mz7mz7mz7 commented 1 year ago

Can we please also add unit tests that check the 'from' field for being on the sanctions list, for both transfers, deposits, and withdrawals @Tunji17

And I think there is no test for withdrawals for now, not even for the 'to' field, so let's add it.