Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finance Loan: Token muxing #2038

Merged
merged 17 commits into from
Mar 26, 2024
Merged

Finance Loan: Token muxing #2038

merged 17 commits into from
Mar 26, 2024

Conversation

onnovisser
Copy link
Collaborator

@onnovisser onnovisser commented Mar 20, 2024

Description

  • When fulfilling swap orders from Currency -> LocalRepresentation or vice-versa, do a tokenMux.matchOrder instead
  • When financing assets, where the pool currency is a LocalAsset, swap the LocalAsset for currencies available in the tokenMux pallet and transfer them to the right domains. Only does so for currencies of domains for which the AO has a withdraw address set.

#2001
#1818

Approvals

  • Dev

Screenshots

image

Impact

Copy link

socket-security bot commented Mar 22, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/[email protected] None 0 7.69 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 64.6 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 13.5 kB nicolo-ribaudo
npm/@babel/[email protected] unsafe 0 210 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 55 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 9.96 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 15.4 kB nicolo-ribaudo
npm/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3 None 0 7.83 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 10.7 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 25.2 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 5.49 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 3.71 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 5.19 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.21 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 6.94 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 5.62 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 20.5 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 8.04 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 6.62 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 88.5 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.94 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 10.2 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 85.6 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 22.8 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 82 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.17 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 9.18 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 6.21 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 5.02 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 8.13 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 17.8 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 44.7 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 6.27 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 5.86 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.7 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 8.59 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 5.01 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 21 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 42.5 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 66 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 25.7 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 10.3 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 9.09 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 5.41 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 9.3 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.81 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.76 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 20 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.79 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 12.5 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 9.19 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 9.26 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 80 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 6.57 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.35 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 7.18 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 21.3 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.71 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 15.9 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 10.6 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 132 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 14 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 5.07 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 4.74 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 21.6 kB nicolo-ribaudo
npm/@base2/[email protected] None 0 18.1 kB chris-baker
npm/@colors/[email protected] environment 0 39.5 kB dabh
npm/@cspotcode/[email protected] filesystem +1 194 kB cspotcode
npm/@cypress/[email protected] environment, filesystem, shell +1 64.1 kB cypress-npm-publisher
npm/@emotion/[email protected] environment 0 7.38 kB emotion-release-bot
npm/@eslint/[email protected] None 0 13.9 kB eslintbot
npm/@floating-ui/[email protected] None 0 208 kB atomiks
npm/@floating-ui/[email protected] None 0 147 kB atomiks
npm/@floating-ui/[email protected] None 0 47.8 kB atomiks
npm/@floating-ui/[email protected] None 0 72.7 kB atomiks
npm/@google-cloud/[email protected] None 0 31.3 kB google-wombot
npm/@google-cloud/[email protected] None 0 36.1 kB google-wombot
npm/@hapi/[email protected] None 0 51.5 kB devinivy
npm/@hapi/[email protected] None 0 10.7 kB devinivy
npm/@humanwhocodes/[email protected] None 0 53.3 kB nzakas
npm/@juggle/[email protected] None 0 73.7 kB trem
npm/@mdx-js/[email protected] None 0 15.5 kB johno
npm/@types/[email protected] None 0 33 kB types
npm/@types/[email protected] None 0 11.4 kB types
npm/@types/[email protected] None 0 6.41 kB types
npm/@types/[email protected] None 0 84.1 kB types
npm/@types/[email protected] None 0 7.65 kB types
npm/@types/[email protected] None 0 5.91 kB types
npm/@types/[email protected] None 0 45.9 kB types
npm/@types/[email protected] None 0 7.86 kB types
npm/@types/[email protected] None 0 3.9 kB types
npm/@types/[email protected] None 0 9.39 kB types
npm/@types/[email protected] None 0 7.92 kB types
npm/@types/[email protected] None 0 6.68 kB types
npm/@types/[email protected] None 0 38.6 kB types
npm/@types/[email protected] None 0 5.81 kB types
npm/@types/[email protected] None 0 9.85 kB types
npm/@types/[email protected] None 0 7.77 kB types
npm/@types/[email protected] None 0 15.5 kB types
npm/@types/[email protected] None 0 21.7 kB types
npm/@types/[email protected] None 0 53 kB types
npm/@ungap/[email protected] None 0 26.2 kB webreflection
npm/[email protected] None 0 10.4 kB jeffcarp
npm/[email protected] environment 0 26.1 kB jonschlinkert
npm/[email protected] environment, filesystem, shell 0 7.75 kB feross
npm/[email protected] None 0 12.9 kB qix
npm/[email protected] None 0 13.5 kB ljharb
npm/[email protected] None 0 20.2 kB ljharb
npm/[email protected] None 0 19.8 kB bahamat
npm/[email protected] None 0 808 kB aearly
npm/[email protected] None 0 20.4 kB ljharb
npm/[email protected] None 0 190 kB nicolo-ribaudo
npm/[email protected] None 0 9.46 kB nicolo-ribaudo
npm/[email protected] None 0 969 B hzoo
npm/[email protected] None 0 79 kB nolanlawson
npm/[email protected] None 0 22.1 kB ljharb
npm/[email protected] None 0 14.3 kB blakeembrey
npm/[email protected] None 0 12.5 kB ljharb
npm/[email protected] filesystem 0 318 kB hegemonic
npm/[email protected] None 0 63.8 kB bahmutov
npm/[email protected] environment, filesystem, network 0 438 kB jakub.pawlowicz
npm/[email protected] None 0 8 kB jonschlinkert
npm/[email protected] None 0 5.67 kB lukeed
npm/[email protected] None 0 17 kB jorgebucaran
npm/[email protected] filesystem, shell 0 13.6 kB mathisonian
npm/[email protected] None 0 228 kB fatfisz
npm/[email protected] None 0 23.7 kB dougwilson
npm/[email protected] None 0 31 kB sheetjs
npm/[email protected] None 0 6.49 kB sonicdoe
npm/[email protected] None 0 82.4 kB feedic
npm/[email protected] environment 0 90 kB jacobp100
npm/[email protected] None +1 225 kB jon.sakas
npm/[email protected] None 0 10 kB tootallnate
npm/[email protected] None 0 664 kB iamkun
npm/[email protected] None 0 30.9 kB ljharb
npm/[email protected] environment, filesystem, shell 0 17.2 kB lovell
npm/[email protected] None 0 44.6 kB feedic
npm/[email protected] network 0 56.6 kB feedic
npm/[email protected] None 0 10.5 kB blakeembrey
npm/[email protected] environment, filesystem 0 36.6 kB motdotla
npm/[email protected] None 0 97.8 kB tootallnate
npm/[email protected] None 0 57.7 kB feedic
npm/[email protected] None 0 11.8 kB ljharb
npm/[email protected] None 0 13.9 kB ljharb
npm/[email protected] None 0 81.3 kB rangermauve
npm/[email protected] filesystem +1 9.81 kB kevva
npm/[email protected] None 0 32.2 kB samthor
npm/[email protected] None 0 41.9 kB matteo.collina
npm/[email protected] environment, network, shell 0 11 kB bolinfest
npm/[email protected] network 0 29.4 kB rubenverborgh
npm/[email protected] eval 0 41.6 kB ljharb
npm/[email protected] None 0 14.3 kB ljharb
npm/[email protected] filesystem 0 39.7 kB retrohack3r
npm/[email protected] filesystem 0 55.1 kB isaacs
npm/[email protected] filesystem 0 25.2 kB google-wombot
npm/[email protected] filesystem 0 38.7 kB google-wombot
npm/[email protected] None 0 10.9 kB ljharb
npm/[email protected] None 0 17.6 kB ljharb
npm/[email protected] network 0 106 kB feedic
npm/[email protected] None 0 40.7 kB bahamat
npm/[email protected] None 0 42.4 kB ehmicky
npm/[email protected] None 0 9.47 kB isaacs
npm/[email protected] None 0 20.5 kB ljharb
npm/[email protected] None 0 28.8 kB ljharb
npm/[email protected] None 0 17.6 kB ljharb
npm/[email protected] None 0 3.81 kB sibiraj-s
npm/[email protected] None 0 30.2 kB ljharb
npm/[email protected] eval 0 31.9 kB ljharb
npm/[email protected] None 0 18.7 kB ljharb
npm/[email protected] None 0 2.68 kB stephenplusplus
npm/[email protected] None 0 23.3 kB ljharb
npm/[email protected] None 0 3.54 kB sindresorhus
npm/[email protected] environment, filesystem 0 3.76 kB sindresorhus
npm/[email protected] None 0 3.89 kB heineiuo
npm/[email protected] None 0 294 kB oss-bot
npm/[email protected] None 0 5.68 kB arcanis
npm/[email protected] None 0 37.3 kB sidorares
npm/[email protected] None 0 17.7 kB omsmith
npm/[email protected] None 0 13.5 kB ryanzim
npm/[email protected] None 0 19.4 kB bahmutov
npm/[email protected] filesystem 0 7.02 kB sindresorhus
npm/[email protected] None 0 4.58 kB sindresorhus
npm/[email protected] None 0 405 kB rich_harris
npm/[email protected] None 0 6.07 kB daaku
npm/[email protected] filesystem 0 4.5 kB mafintosh
npm/[email protected] None 0 334 kB atrue
npm/[email protected] None 0 25.1 kB blakeembrey
npm/[email protected] None 0 1.66 MB davidlehn
npm/[email protected] None 0 58.9 kB addaleax
npm/[email protected] None 0 72.7 kB ljharb
npm/[email protected] environment, filesystem, shell 0 46.3 kB sindresorhus
npm/[email protected] environment 0 3.38 kB jprichardson
npm/[email protected] None 0 7.24 kB sindresorhus
npm/[email protected] None 0 741 kB vitaly
npm/[email protected] None 0 10.2 kB blakeembrey
npm/[email protected] None 0 14.8 kB blakeembrey
npm/[email protected] environment, filesystem, unsafe 0 11.2 MB prettier-bot
npm/[email protected] None 0 11.5 kB sindresorhus
npm/[email protected] environment 0 24.2 kB rob-w
npm/[email protected] None 0 226 kB ljharb
npm/[email protected] None 0 6.96 kB lpinca
npm/[email protected] filesystem 0 242 kB pvasek
npm/[email protected] environment 0 4.5 MB gnoff
npm/[email protected] environment 0 316 kB gnoff
npm/[email protected] None 0 589 kB google-wombot
npm/[email protected] None 0 49.2 kB mathias
npm/[email protected] None 0 40.4 kB ljharb
npm/[email protected] None +1 93.8 kB jviereck
npm/[email protected] None 0 23 kB satazor
npm/[email protected] None 0 18.2 kB google-wombot
npm/[email protected] None 0 25.2 kB matteo.collina
npm/[email protected] None 0 10.2 kB ljharb
npm/[email protected] None 0 16.7 kB ljharb
npm/[email protected] None 0 45 kB ljharb
npm/[email protected] network 0 24.1 kB tootallnate
npm/[email protected] network 0 156 kB joshglazebrook
npm/[email protected] None 0 140 kB 7rulnik
npm/[email protected] shell 0 3.94 kB
npm/[email protected] None 0 23.4 kB kemitchell
npm/[email protected] None 0 3.47 kB kemitchell
npm/[email protected] None 0 11.8 kB kemitchell
npm/[email protected] None 0 12.6 kB kemitchell
npm/[email protected] unsafe 0 14.6 kB isaacs
npm/[email protected] None 0 3.03 kB stephenplusplus
npm/[email protected] filesystem 0 54.4 kB raszi
npm/[email protected] None +1 116 kB awaterma
npm/[email protected] None 0 68 kB dsagal2
npm/[email protected] None 0 13.1 kB ljharb
npm/[email protected] None 0 20 kB ljharb
npm/[email protected] None 0 20.3 kB ljharb
npm/[email protected] None 0 32 MB typescript-bot
npm/[email protected] None 0 5.01 kB google-wombot
npm/[email protected] None 0 5.05 kB google-wombot
npm/[email protected] None 0 25.7 kB google-wombot
npm/[email protected] None 0 5.98 kB google-wombot
npm/[email protected] None 0 4.67 kB ryanzim
npm/[email protected] None 0 63 kB swaagie
npm/[email protected] None 0 13.3 kB ljharb
npm/[email protected] filesystem 0 5.8 kB daaku
npm/[email protected] None 0 9.04 MB mattiasbuelens
npm/[email protected] None 0 11.8 kB jonschlinkert
npm/[email protected] None 0 6.31 kB sindresorhus

🚮 Removed packages: npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@discoveryjs/[email protected], npm/@emotion/[email protected], npm/@eslint-community/[email protected], npm/@ethereumjs/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@ethersproject/[email protected], npm/@leichtgewicht/[email protected], npm/@nicolo-ribaudo/[email protected], npm/@sindresorhus/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

socket-security bot commented Mar 22, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@onnovisser onnovisser marked this pull request as ready for review March 22, 2024 12:50
@onnovisser onnovisser enabled auto-merge (squash) March 26, 2024 09:34
@onnovisser onnovisser merged commit dddc9d4 into main Mar 26, 2024
9 checks passed
@onnovisser onnovisser deleted the mux branch March 26, 2024 09:37
Copy link

PR deployed in Google Cloud
URL: https://app-pr2038.k-f.dev
Commit #: e27fe7f
To access the functions directly check the corresponding deploy Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants