- Signatures are now stored in a map (buffer to boolean).
- If a signature is re-used, the transaction will fail.
- Executed planned modifications for mainnet.
- The
fragments-per-token
variable is only needed to convert a stakers amount into fragments. The reason this conversion was added is so that when USDA is burned, the amount of all stakers can be decreased by updating one variable. - The rewards logic should not take
fragments-per-token
into account. The rewards are distributed across the total fragments.
- Added param
max-mint-fee
toopen-vault
andupdate-vault
methods
- Switched from using
tx-sender
tocontract-caller
- Did not change
wstx-token
L55. In this case we do want to comparesender
param to originaltx-sender
and not with an intermediate contract that handles the transfer. - Admin related methods use
get-dao-owner
to check if caller is trusted. Thedao-owner
is stored seperately fromdao-guardian
and whitelisted protocol contracts in thedao
contract.
- Replaced unwrap-panic for unwrap!