@armaniferrante Could be cool if in anchor you could required accounts to be validated by default so that leaving an account invalidated required an explicit tag of some sorts.
@myssyng_lynx @lovethewired@fiveoutofnine We could also perhaps build a multiset of both arrays and check equivalence of the multiset, but this might be more impractical in Solidity (haven’t thought deeply about this though, just spitballing).
@myssyng_lynx @lovethewired@fiveoutofnine What if you took the sum (or XOR) of the keccak256 of each element in the array? Maybe there’s an obvious attack here, but this might be a way to check if two arrays represent the same multiset with high probability.
@0xngmi I don’t think it works so simply like this. In the Alchemix case, I’m sure not as many users would’ve joined if the APY started out at 50% APY.