AstariaXYZ / astaria-core

NFT Collateralized Lending Market leveraging our novel 3 Actor Model
https://astaria.xyz
Other
137 stars 15 forks source link

NFT blacklisting attack test #306

Open dangerousfood opened 1 year ago

dangerousfood commented 1 year ago
  1. WithdrawProxy Blacklisting
    • Craft a test of an NFT
    • commitToLien
    • Configure a liquidation to happen to a withdrawProxy
    • Bid on auction and settlement fails
    • Wait till after finalAuctionEnd
    • call claim() and then redeem()
    • validate that the LP lost the proportional value of the NFT
    • validate that the PublicVault lost the proportional value of the NFT
    • validate that the PublicVault yIntercept reflects the lost proportional value of the NFT
    • validate that the PublicVault totalAssets() reflects the lost proportional value of the NFT
  2. PublicVault Blacklisting
    • Craft a test of an NFT
    • commitToLien
    • Configure a liquidation to happen without a withdrawProxy
    • Bid on auction and settlement fails
    • Wait till after finalAuctionEnd
    • validate that the PublicVault lost the proportional value of the NFT
    • validate that the PublicVault yIntercept reflects the lost proportional value of the NFT
    • validate that the PublicVault totalAssets() reflects the lost proportional value of the NFT
ameya-deshmukh commented 1 year ago

@dangerousfood is this still available to work on? Would love to give it a shot :)