mirror of
https://github.com/Instadapp/assembly.git
synced 2024-07-29 22:37:06 +00:00
wip
This commit is contained in:
parent
a24c42cd0d
commit
204e7abb8e
|
@ -12,6 +12,7 @@ export interface IStrategyContext {
|
|||
convertTokenAmountToBigNumber?: (value: any, decimals: any) => string;
|
||||
getTokenByKey?: (key: string) => IStrategyToken;
|
||||
position?: any;
|
||||
variables?: object;
|
||||
}
|
||||
|
||||
export interface IStrategyToken {
|
||||
|
@ -77,6 +78,8 @@ export interface IStrategy {
|
|||
|
||||
inputs: IStrategyInput<StrategyInputType>[];
|
||||
|
||||
variables?: object;
|
||||
|
||||
spells: (context: IStrategyContext) => Promise<Spell[]> | Spell[];
|
||||
|
||||
submitText?: string;
|
||||
|
|
|
@ -27,7 +27,8 @@ export class Strategy {
|
|||
getBaseContext(): Omit<IStrategyContext, "inputs"> {
|
||||
return {
|
||||
...this.context,
|
||||
...this.props
|
||||
...this.props,
|
||||
variables: this.schema.variables || {}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user