AcalaNetwork / Acala

Acala - cross-chain DeFi hub and stablecoin based on Substrate for Polkadot and Kusama.
https://acala.network
GNU General Public License v3.0
739 stars 512 forks source link

Drop block time assumption #874

Open xlc opened 3 years ago

xlc commented 3 years ago

All of rates logic assumes fixed average block time, which is not something we can have. So should use timestamp instead of block number to calculate rates.

xlc commented 3 years ago

Or if we know when block time will change from 12s to 6s, we can manually adjust the parameters with the new time.