-
Hi all, In aaveBorrow.js script, what exactly is the purpose of appending I ran the script without So, what do these conversion functions: Script Github link: P.S. I understand the overall formulae, just do not know the reason of these conversions made. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
They serve to make the logic more definitive (i.e. conclusive) and as type-conversions are not computationally intensive, it does not hurt to use it as a "precaution" and hence, acts like a mini conditional. An additional point to be made is that it so because we are using an external contract, but from my rationale the above is the primary reason as to why we do this. |
Beta Was this translation helpful? Give feedback.
They serve to make the logic more definitive (i.e. conclusive) and as type-conversions are not computationally intensive, it does not hurt to use it as a "precaution" and hence, acts like a mini conditional.
An additional point to be made is that it so because we are using an external contract, but from my rationale the above is the primary reason as to why we do this.