You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now this is disabled since it isn't needed for basic sims. Activating this requires some care as this is done in different operations for the 2-coin factory cryptopool and the tricrypto-ng pools.
The text was updated successfully, but these errors were encountered:
The tricrypto-ng and 2-coin cryptopool implementations of _claim_admin_fees have one main difference. Tricrypto-ng will end execution early (without updating state) if there aren't enough profits to claim. Cryptopool, will, at the very least, still update D and virtual_price even if there aren't enough profits to claim.
Another important thing to note: cryptopool calls _claim_admin_fees only in tweak_price, but tricrypto does not. Instead, tricrypto calls _claim_admin_fees in add_liquidity and remove_liquidity_one_coin, both of which also call tweak_price either before or after, and in remove_liquidity, which doesn't need to call tweak_price.
Right now this is disabled since it isn't needed for basic sims. Activating this requires some care as this is done in different operations for the 2-coin factory cryptopool and the tricrypto-ng pools.
The text was updated successfully, but these errors were encountered: