Factory
Code
Events
LendgineCreated
Emitted each time a new lendgine is created.
Errors
SameTokenError
Emitted an account attempts to create a lendgine with two of the same tokens.
ZeroAddressError
Emitted when an account attempts to create a lendgine with one of the token's addresses being 0.
DeployedError
Emitted when an account attempts to create a lendgine but that exact lendgine is already created.
ScaleError
Emitted when an account attempts to create a lendgine with a token scale that is invalid.
Read-only functions
getLendgine
Returns the lendgine address for a given pair of tokens and upper bound. Returns 0 if the lendgine doesn't exist.
parameters
Parameters used during lendgine creation, set transiently for on-chain computable create2 addresses.
State-changing functions
createLendgine
Deploys a lendgine with the supplied parameters. Transiently sets the parameters slots and clears them after creation.
Last updated