EatTheBlocks Forum

Flashloans - Lesson 14

Hi, there

I have a question about the Flashloans Lesson 14. In this code:

    const kyberRates = {
        buy: parseFloat(1 / (kyberResults[0].expectedRate / (10 ** 18))),
        sell: parseFloat(kyberResults[1].expectedRate / (10 ** 18))
  };

Could someone tell me the meaning of 1? I don’t know why use 1 to div kyberResults[0].expectedRate / (10 ** 18)).

Could anybody give me some advice?

Thanks