aztec-connect-bridges icon indicating copy to clipboard operation
aztec-connect-bridges copied to clipboard

[WIP] Add Ribbon Finance bridge contract

Open drshrey opened this issue 2 years ago β€’ 6 comments

drshrey avatar Mar 19 '22 18:03 drshrey

Hello @drshrey, how is it going with this bridge? 😊

benesjan avatar May 30 '22 15:05 benesjan

Finishing up the final unit test and finalise logic today, will have it out for the first set of reviews eod PT!

Get Outlook for iOShttps://aka.ms/o0ukef


From: Jan BeneΕ‘ @.> Sent: Monday, May 30, 2022 8:24:14 AM To: AztecProtocol/aztec-connect-bridges @.> Cc: Shreyas Jaganmohan @.>; Mention @.> Subject: Re: [AztecProtocol/aztec-connect-bridges] [WIP] Add Ribbon Finance bridge contract (PR #34)

Hello @drshreyhttps://github.com/drshrey, how is it going with this bridge? 😊

β€” Reply to this email directly, view it on GitHubhttps://github.com/AztecProtocol/aztec-connect-bridges/pull/34#issuecomment-1141277236, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAYKNPOTSNUMBTVI7P2BWO3VMTMR5ANCNFSM5REL76NQ. You are receiving this because you were mentioned.Message ID: @.***>

drshrey avatar May 30 '22 16:05 drshrey

Finishing up the final unit test and finalise logic today, will have it out for the first set of reviews eod PT!

Great to hear πŸ‘

BTW can you please rebase the branch onto master and fix the linting errors in your code (if there are some)? Lately we've done many changes to the code quality requirements so would it be great to have this branch follow that.

We updated dependencies so before running tests don't forget to run yarn and git submodule update --init` again.

Thank you

benesjan avatar May 30 '22 16:05 benesjan

Rebased! @benesjan, one final question I had was around the finalization process for withdrawals. There are 2 withdrawal processes, but the tricky one seems to be the asynchronous one i.e. there is effectively a 1 hour window between rounds in which we can complete a withdrawal request for tokens posted in prior rounds (we do have to initialize the request beforehand which has more leniency on when). Is there a way for the rollup processor to invoke finalise() during that time window (Fridays between 10 AM - 11 AM UTC)?

drshrey avatar May 31 '22 16:05 drshrey

Rebased! @benesjan, one final question I had was around the finalization process for withdrawals. There are 2 withdrawal processes, but the tricky one seems to be the asynchronous one i.e. there is effectively a 1 hour window between rounds in which we can complete a withdrawal request for tokens posted in prior rounds (we do have to initialize the request beforehand which has more leniency on when). Is there a way for the rollup processor to invoke finalise() during that time window (Fridays between 10 AM - 11 AM UTC)?

Hi, for the asynchronous execution, anyone is able to go to the RollupProcessor to call processAsyncDefiInteraction with the specific nonce, so you might want to think about a manner to ensure that someone performs this call, e.g., cover the gas cost etc. If you want to do it from within a rollup itself, you might not hit the correct timing. Let me know if you got any questions.

LHerskind avatar Jun 01 '22 11:06 LHerskind

@drshrey It seems that the contracts don't compile. Can you please fix that along with the linting errors? Running yarn lint returns the following: Screen Shot 2022-05-31 at 22 29 00

Thank you πŸ‘

benesjan avatar Jun 01 '22 14:06 benesjan