astraly-labs / astraly-contracts

Astraly Cairo Contracts
https://testnet.astraly.xyz
Creative Commons Zero v1.0 Universal
39 stars 12 forks source link

Performance Fees ✨ #42

Closed EvolveArt closed 1 year ago

EvolveArt commented 1 year ago

Performance fees is a fixed fee taken on withdraw_tokens.

It's computed as followed : fee = (price(T) - price(T0)) / performance_fee Typically we can have performance_fee=20 which would give a 5% fee on the performance of the token. Of course if the token's price has not increased, no fees are taken.