Comments (2)
Note that flash loans will not be usable in the Balancer platform, due to reentrancy protection. batchSwap
already allows for arbitrage without upfront capital anyway.
from balancer-v2-monorepo.
Flashloans should be very straightforward: they will ignore all accounting, and only rely on the actual ERC20 balance for how much can be taken out. Because fees are added as unnaccounted for tokens, we don't need to update any accounting at the end of the loan - only check that the ERC20 balance has increased by the fee amount.
I haven't looked at flash loan implementations for other platforms recently, but I'd assume a reasonable interface would have:
- which tokens to flash loan
- how much to transfer
- destination address
- callback address
- callback data
We should do the callback keeping #37 in mind.
from balancer-v2-monorepo.
Related Issues (20)
- Add Avalanche and Polygon ZK EVM as gauge types to checkpointer HOT 1
- Improve addresses JSON HOT 1
- `StableMath::_calculateInvariant` can, in fact, overflow HOT 3
- Redeploy batch relayer in L2s with reference to the pseudo minter HOT 1
- Allow a single gauge factory per gauge type in `GaugeAdder` HOT 1
- Remove `deployments/` package
- Address calling peekChainedReferenceValue in payable transactions
- Implement LZ bridge forwarder
- L2GaugeCheckpointer: fix checkpoint timestamp
- Develop new Avalanche root gauge for new LZ bridge HOT 1
- Adjust docs in CSP / `getRate`
- Seedless LBPs HOT 2
- ProtocolId Registry
- Develop Base root gauge factory
- BPT_IN_FOR_EXACT_TOKENS_OUT accuracy issue HOT 1
- Execution reverted: BAL#520 when calling joinPool on a Managed Pool to add ETH HOT 3
- Deployed npm packages are having missing files
- ComposableStablePoolFactory -> create error
- LogExpMath.pow gives unexpected result HOT 1
- Please deploy to Holesky Testnet HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from balancer-v2-monorepo.