mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-28 16:48:00 +03:00
fixed typos, added pmm.getContractAddress() method
This commit is contained in:
@@ -16,6 +16,7 @@ export default class Pmm {
|
||||
this.unit = unit;
|
||||
this.provider = unit.provider;
|
||||
this.contractAddress = '';
|
||||
// this.contractAddress = '0x89357522c0ed6e557d39dc75290859246077bdfc';
|
||||
}
|
||||
|
||||
private isInitialized() : boolean {
|
||||
@@ -29,6 +30,11 @@ export default class Pmm {
|
||||
this.contractAddress = orionPMMRouterContractAddress;
|
||||
}
|
||||
|
||||
public async getContractAddress() {
|
||||
await this.init();
|
||||
return this.contractAddress;
|
||||
}
|
||||
|
||||
public async setAllowance(token: string, amount: string, signer: Wallet) {
|
||||
await this.init();
|
||||
|
||||
@@ -64,7 +70,7 @@ export default class Pmm {
|
||||
await txResponse.wait();
|
||||
}
|
||||
|
||||
public async FillRFQOrder(order : z.infer<typeof pmmOrderSchema>, signer: Wallet) {
|
||||
public async fillRFQOrder(order : z.infer<typeof pmmOrderSchema>, signer: Wallet) {
|
||||
await this.init();
|
||||
|
||||
if(!order.success)
|
||||
|
||||
Reference in New Issue
Block a user