Skip to content

Extract tokens#20

Open
evelinemolnar wants to merge 3 commits intomainfrom
extract-tokens
Open

Extract tokens#20
evelinemolnar wants to merge 3 commits intomainfrom
extract-tokens

Conversation

@evelinemolnar
Copy link
Copy Markdown
Contributor

No description provided.

}

#[allow(lint(self_transfer))]
public fun extract_tokens<T>(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be safer to:

  1. Specify receiver - so we can send the xmn directly to treasury
  2. Specify amount so we can also do test transfers

ts::end(scenario);
}

// ===== extract_tokens tests =====
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I see the locked token branch has no tests, can we add tests for that one too please? (at least the happy path)

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