I am trying to call a function in a contract through another contract. So there are 3 contracts, (1) one we have which wants to get price on some action, (2) Price Provider contract which checks the exchange price and returns a uint, and (3) the Price feed which provides exchange price
(First Contract)
request_price
-> (Second Contract)
get_price
-> (Third Feed)
get_latest_answer
From what I read, submitting a cross contract call returns a promise, which could be called when resolved. How would it work for 2 or more promises who depend on each other?
I tried https://www.near-sdk.io/cross-contract/callbacks, but I couldn't think of a way to make another call in the same call possible