txalkan / syron-evm

Syron EVM implementation on Scaffold-ETH
GNU General Public License v3.0
0 stars 0 forks source link

review chainlink data feed #5

Open txalkan opened 10 months ago

txalkan commented 10 months ago

In Minter.sol, there is a @ review to calculate the loans' size (amount of stablecoins) equivalent to the collateral.

We can use the ETH/USD price feed. And then, there is the conversion to SGD at a fixed rate of 0.74 SGD/USD.

At last, we could have an over-collateralization ratio to compute the loans' value.

txalkan commented 10 months ago

Alternatively, we can consider using USD as the peg. And avoid the conversion step.