Skip to content

Find token price throught Uniswap v2 oracle instead of having a base price for the translator deposit. #328

@clesaege

Description

@clesaege

See https://github.com/kleros/kleros-interaction/blob/master/contracts/standard/arbitration/LinguoToken.sol#L257 which doesn't behave like Linguo.
https://github.com/kleros/kleros-interaction/blob/master/contracts/standard/arbitration/Linguo.sol#L246

In order to keep the deposit related to the translation value, we need to use Uniswap v2 to get the price of tokens in ETH in order to determine the deposit.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions