ubiquity / ubiquity-dollar

Ubiquity Dollar (uAD) smart contracts and user interface.
https://uad.ubq.fi
Apache License 2.0
31 stars 82 forks source link

Investigate and confirm the behaviour for new staking users for uad-contracts and diamond #939

Open gitcoindev opened 1 month ago

gitcoindev commented 1 month ago

Right now the behaviour for new staking users is this one: 1) User deposits 1000 UAD3CRV LP to https://etherscan.io/address/0xc251ecd9f1bd5230823f9a0f99a44a87ddd4ca38 for 1 week 2) User waits for 1 week 3) User withdraws 1000 UAD3CRV LP and gets 178 UAD3CRV LP + 72 UBQ. User would expect to get 1000 UAD3CRV LP instead of 178.

Originally posted by @rndquu in https://github.com/ubiquity/ubiquity-dollar/issues/752#issuecomment-2078849441

gitcoindev commented 1 month ago

I extracted this to a separate issue, will post finding for both uad-contracts and diamond-based staking contract.